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

Add an option to just swipe without crossing the threshold #4

Open
TheSeamau5 opened this issue Nov 3, 2014 · 2 comments
Open

Add an option to just swipe without crossing the threshold #4

TheSeamau5 opened this issue Nov 3, 2014 · 2 comments
Assignees
Milestone

Comments

@TheSeamau5
Copy link
Owner

It would be nice if you could just transition to the next page with a fast swipe by doing something like

if (Math.abs(oldEvent.dx - newEvent.dx) > someNumber){
    goToNextPage();
}
@TheSeamau5 TheSeamau5 self-assigned this Nov 3, 2014
@TheSeamau5 TheSeamau5 added this to the v0.3 milestone Nov 3, 2014
@ohanhi
Copy link

ohanhi commented Feb 13, 2015

@TheSeamau5 I could take a look at velocity-based switching. Do you have some specific breaking changes in mind for v0.3?

@TheSeamau5
Copy link
Owner Author

Yeah, but don't worry. I'll just do the necessary merging. The big one to consider is the support for right-to-left. Basically, you would add an attribute called rtl : Bool which would mean that pages appear in sequence from right to left as opposed to the current left to right. So, to swipe to the next page would mean swiping from left to right. This is just an if-statement, so, as I said, don't worry too much.

@ohanhi ohanhi mentioned this issue Feb 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants