gpt4 book ai didi

javascript - jgesture 在phonegap 中不起作用

转载 作者:行者123 更新时间:2023-11-28 16:22:27 36 4
gpt4 key购买 nike

我已经包含了jgesture.min.js,但是滑动功能不起作用,谁能告诉我如何解决问题

 <script type="text/javascript" charset="utf-8" src="jquery.mobile/jgestures.min.js"></script>



this.container.bind("swiperight", function(event, body) {
alert("you swiped!");
});

最佳答案

这是插件设计的问题。

仅当滑动在 Y 轴上移动时,swiperight 才会触发。

请参阅:Only swipeone is working with jGestures

关于javascript - jgesture 在phonegap 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9112431/

36 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com