我可以暂停iScroll功能吗? [英] Can I suspend iScroll functionality?

查看:95
本文介绍了我可以暂停iScroll功能吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有时想禁用滚动,以便可以在同一区域进行多点触摸事件,例如...

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

这样可能吗?

推荐答案

myScroll.disable()

然后在触摸端

myScroll.enable()

:)

这篇关于我可以暂停iScroll功能吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆