【发布时间】:2017-07-19 22:17:18
【问题描述】:
Tooltipster jquery 插件被加载以触发工具提示“悬停”状态。
在移动设备上时,“悬停”触发器不会加载 - 因此,我想在移动设备上将触发器更改为“点击”。
我在 tooltipster.core.js 中尝试了以下编辑: 但这只是禁用工具提示,并不会更改“触发器”以单击 ...触发器:“点击”,从触发器更改:“悬停”,
var defaults = {
animation: 'fade',
animationDuration: 350,
content: null,
contentAsHTML: false,
contentCloning: false,
debug: true,
delay: 300,
delayTouch: [300, 500],
functionInit: null,
functionBefore: null,
functionReady: null,
functionAfter: null,
functionFormat: null,
IEmin: 6,
interactive: false,
multiple: false,
// must be 'body' for now, or an element positioned at (0, 0)
// in the document, typically like the very top views of an app.
parent: 'body',
plugins: ['sideTip'],
repositionOnScroll: false,
restoration: 'none',
selfDestruction: true,
theme: [],
timer: 0,
trackerInterval: 500,
trackOrigin: false,
trackTooltip: false,
trigger: 'click',
triggerClose: {
click: false,
mouseleave: false,
originClick: false,
scroll: false,
tap: false,
touchleave: false
},
triggerOpen: {
click: false,
mouseenter: false,
tap: false,
touchstart: false
},
updateAnimation: 'rotate',
zIndex: 9999999
},
【问题讨论】:
标签: jquery wordpress tooltipster