简体   繁体   English

jquery.validate抑制单击/触摸事件,从而停止iscroll4

[英]jquery.validate suppresses click/touch events, stopping iscroll4 from working

I'm building a JQM app, it's running inside cordova/phonegap on android at the moment. 我正在构建一个JQM应用程序,目前正在android的cordova / phonegap内部运行。

I have a simple page with a form, inside an iscroll wrapper for scrolling. 我在iscroll包装器中有一个带有表单的简单页面,用于滚动。 This works fine, until I use jquery.validate plugin on the form. 在我在表单上使用jquery.validate插件之前,它可以正常工作。

It seems that the jquery.validate plugin is taking over the click/touch events and not letting them get up to iscroll. 看来jquery.validate插件正在接管click / touch事件,而不是让它们停滞不前。

If I click/touch in an area outside of the form, I can scroll normally, but if I click anywhere inside the form, nada. 如果单击/触摸表单以外的区域,则可以正常滚动,但是如果单击表单内的任何位置,则为nada。

I'm using JQM 1.3.2, JQuery 1.9.1 and jquery.validate 1.11.1 我正在使用JQM 1.3.2,JQuery 1.9.1和jquery.validate 1.11.1

Any ideas? 有任何想法吗? So frustrating... 真令人沮丧

Success... 成功...

After much screwing around, I have discovered it was jquery.touchToClick, a jquery plugin to remove the 200ms delay waiting for double tap. 经过很多麻烦之后,我发现它是jquery.touchToClick,这是一个jquery插件,可消除等待双击的200ms延迟。

Including this plugin seems to have had the effect of everything working everywhere else, except with iscroll and jquery.validate for some reason! 包括该插件似乎已使所有其他地方都能正常工作,但由于某些原因,除了iscroll和jquery.validate之外!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM