Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于freeze方法的使用.. #2

Open
hjdshu opened this issue Apr 4, 2015 · 2 comments
Open

关于freeze方法的使用.. #2

hjdshu opened this issue Apr 4, 2015 · 2 comments

Comments

@hjdshu
Copy link

hjdshu commented Apr 4, 2015

freeze() 是冻结住页面不让他滑动,可否设计成freeze(true,false),表示成可以向左滑动但是不能往右边滑动。。 原来我也写过这种类似的,但是写的太差了,,作者这个实在是太好用了,谢谢!!

@qiqiboy
Copy link
Owner

qiqiboy commented Apr 4, 2015

你说的这种场景不常用,pageSwitch设计成页面可以时时响应用户拖动,如果突然莫名只能向一方拖动,有点奇怪。
要达到你说的效果,可以调用freeze冻结页面,然后根据用户手势来切换页面(例如Zepto封装的swipeLeft swipeRight事件),调用prev或者next方法。

@shanlh
Copy link

shanlh commented Jul 24, 2015

感觉当父pageSwitch嵌套子pageSwitch的时候比较有用。。子pageSwitch滑到不能滑的时候会滑父pageSwitch。。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants