-->

Can I suspend iScroll functionality?

2019-03-15 11:08发布

问题:

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()

:)