-
Notifications
You must be signed in to change notification settings - Fork 713
update react-swipeable to v5 #399
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
Looks good so far! |
Is this going to be merged? |
@gcosgreave-us I got pulled away due to some bug fixes for react-swipeable, but I do have a tentative plan to get back to this early next week. It is close. |
Awesome news @hartzis 👍 |
@xiaolin I think this is ready for you to take a look.
|
@hartzis Sounds good, i'll take a look. |
|
||
let offsetPercentage = (delta / galleryWidth * 100); | ||
let offsetPercentage = (absX / galleryWidth * 100); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
delta
here in react-swipeable v4 was actually absX
so updated to use absX
in v5.
Just as a heads up, I was able to run the example and test everything I could and from my end. Let me know if you have questions/concerns/feedback. |
LGTM, I'm going to do a round of testing on my end and merge. |
@hartzis Looked through and everything seems to be working correctly. Thanks for the amazing PR! |
* update react-swipeable to v5, match functionality * Bump react-swipeable * use dir from swipeable * clean up spaces
update react-swipable to v5
TODOs:
dir
and try to clean up directional logic?...
I found some time, 🎉 and I know we discussed possibly just removing
react-swipeable
in #321, but opened this to see what updating to v5 would look like.