Can I suspend iScroll functionality?

前端 未结 1 433
独厮守ぢ
独厮守ぢ 2021-02-05 21:31

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 myScrol         


        
1条回答
  •  温柔的废话
    2021-02-05 22:14

    myScroll.disable()
    

    Then on touchend

    myScroll.enable()
    

    :)

    0 讨论(0)
提交回复
热议问题