-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tab内容中,zepto注册的longTap失效 #25
Comments
使用了tap后 ,longTap长按,浏览器响应的是点击鼠标右键的效果。 |
由于实现机制的缘故,tab 组件默认屏蔽了所有事件,其中 click 和 tab 都是模拟出来的。针对你这种场景可能无法支持~ |
我改了你们的源码,是否阻止事件 我做成了一个配置项,避免那种问题。 |
不过你们重写了zepto的tap,却好像没去管longTap,是否应该把longTap也重写一下? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
$('.long-press-demo').on('longTap','.box-flex-item',function (e) {
alert(this.outerHTML)
console.log(e.type)
})
使用以下的tab组件后,导致longTap事件不响应。
var tab = new fz.Scroll('.ui-tab', {
// role: 'tab',
// // interval: 3000
// //autoplay: true
// });
The text was updated successfully, but these errors were encountered: