我想知道我是怎么做到滚动 PhoneGap 没有这个的 在我的应用程序中,当我在应用程序上拖动鼠标时,它会 向上或向下,就像我保持固定一样?我张贴的照片是什么 发生了,谢谢! http://postimage.org/image/pa2kyvvwb/ http://postimage.org/image/gf8cnrjsx/
最佳答案
你可以使用这个脚本,但是如果你的页面比屏幕大,你就必须自己处理滚动:
//Prevent dragging of canvas on iOS
$(document.body).bind('touchmove', function(event) {
event.preventDefault();
});
关于javascript - 拖动应用phonegap,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10755722/