Can I suspend iScroll functionality?

别等时光非礼了梦想. 提交于 2019-12-03 13:23:16

问题


I want to disable the scroll sometimes so I can do multi-touch events in the same area, something like...

if event.originalEvent.touches.length is 2 then myScroll.disable()

Is something like this possible?


回答1:


myScroll.disable()

Then on touchend

myScroll.enable()

:)



来源:https://stackoverflow.com/questions/7924250/can-i-suspend-iscroll-functionality

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!