-
Notifications
You must be signed in to change notification settings - Fork 147
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
Swipe only on certain start position #79
Comments
OOOooo, i think this is an interesting challenge! This isn't currently possible with But I do think a solution can be devised. For example if you want to track that a user started swiping on the right side of something. You could put a Does this make sense? you'll probably have to do something crazy with css, |
Ah ofcourse, that makes so much sense! I made the entire page swipeable instead of the section I wanted to. Fixed it and it works properly now. Thanks so much for the help! |
rock on! If this happens to be an open source project your working on could you link to the usage? I'd love to possibly try to add something like this to examples. |
Hi, your library looks interesting, I'm trying to use it to display a side menu. Digging into the code, I see what looks like the startX/startY in an internal 'swipeable' variable (not state) Could those values be passed as an argument into the swipe methods? My current workaround is to do something like this, seems to work in a few trials.
|
@djeeg I'd like to absolutely have all the data returned in an object you could destructure, thinking Why do you need to know the start position exactly? If you are setting the so then you only need to know what you are doing above with the I'd like to make a codesandbox to demonstrate "menu swipe-ins", it is on my list. #90 also we removed tracking |
Hi,
First of all, great library!
I would like to trigger something only if a swipe was done that started on a certain location. Is this currently possible in some way?
I was thinking it would be nice to have startX and startY arguments (similar to deltaX and deltaY) in the onSwiped functions. Would that be a good idea?
Cheers,
Yannic
The text was updated successfully, but these errors were encountered: