PhoenGap应用程序未检测刷卡 [英] PhoenGap app not detecting swipe
本文介绍了PhoenGap应用程序未检测刷卡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个PhoneGap的应用2.9在Android 4.4上运行,它需要多次尝试检测来自jQuery Mobile的(v.1.10)刷卡事件。同样的code精美运行在Android 4.3。结果
我曾试图改变值
$。event.special.swipe.durationThreshold
$ .event.special.swipe.horizontalDistanceThreshold
但这些似乎并没有帮助的。有什么建议?
下面是如何,我钩住了刷卡事件:
的$(document)。在(刷卡,.collapsed'功能(E){
// 做一点事
});
解决方案
设置目标SDK来的,而不是18 19,迫使新的WebView在奇巧在兼容模式下运行。
I have a PhoneGap 2.9 app running on Android 4.4 and it takes several tries to detect a swipe event from jQuery Mobile (v.1.10). This same code runs beautifully on Android 4.3.
I have tried changing the values for
$.event.special.swipe.durationThreshold
$.event.special.swipe.horizontalDistanceThreshold
but these do not seem to help at all. Any suggestions?
Below is how I am hooking up the swipe event:
$(document).on("swipe", '.collapsed', function (e) {
// do something
});
解决方案
Set the target SDK to 18 instead of 19 to force the new webview in kitkat to operate in compatibility mode.
这篇关于PhoenGap应用程序未检测刷卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文