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

Page swipe #8

Open
reissy88 opened this issue Nov 9, 2011 · 2 comments
Open

Page swipe #8

reissy88 opened this issue Nov 9, 2011 · 2 comments

Comments

@reissy88
Copy link

reissy88 commented Nov 9, 2011

Noticed if dragging a page left or right very slowly the page can be stopped in the middle of both pages, also on orientation change I have dynamically updated the width of the containers however the page seems to get stuck in the middle of the 2 pages.

However touching the page then fixes the problem.

@dbogatz
Copy link

dbogatz commented Mar 29, 2013

patch line 313 to:
if (that.dirX || this.x % that.pageWidth)

I noticed the same problem - it's because of the _move function where it states:
that.dirX = deltaX > 0 ? -1 : deltaX < 0 ? 1 : 0; <-- so dirX may become 0 if touch leaved while stop moves.

@reissy88
Copy link
Author

Thanks mate... Hahaaha works great!!

Not sure why Matteo added the option to stop between pages, 2 way iScroll is very cool I hope Matteo hasn't forgot about it.

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

2 participants