Skip to content

update react-swipeable to v5 #399

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

Merged
merged 4 commits into from
May 27, 2019

Conversation

hartzis
Copy link
Contributor

@hartzis hartzis commented Apr 2, 2019

update react-swipable to v5

TODOs:
  • match v4 functionality
  • use 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.

@xiaolin
Copy link
Owner

xiaolin commented Apr 5, 2019

Looks good so far!

@xiaolin xiaolin self-requested a review April 5, 2019 14:13
@gcosgreave-us
Copy link

Is this going to be merged?

@hartzis
Copy link
Contributor Author

hartzis commented May 9, 2019

@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.

@gcosgreave-us
Copy link

Awesome news @hartzis 👍

@hartzis hartzis changed the title update react-swipeable to v5 [WIP] update react-swipeable to v5 May 14, 2019
@hartzis
Copy link
Contributor Author

hartzis commented May 14, 2019

@xiaolin I think this is ready for you to take a look.

@xiaolin
Copy link
Owner

xiaolin commented May 14, 2019

@hartzis Sounds good, i'll take a look.


let offsetPercentage = (delta / galleryWidth * 100);
let offsetPercentage = (absX / galleryWidth * 100);
Copy link
Contributor Author

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.

@hartzis
Copy link
Contributor Author

hartzis commented May 16, 2019

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.

@xiaolin
Copy link
Owner

xiaolin commented May 24, 2019

LGTM, I'm going to do a round of testing on my end and merge.

@xiaolin
Copy link
Owner

xiaolin commented May 27, 2019

@hartzis Looked through and everything seems to be working correctly. Thanks for the amazing PR!

@xiaolin xiaolin merged commit 2787057 into xiaolin:master May 27, 2019
xiaolin pushed a commit that referenced this pull request Jul 21, 2023
* update react-swipeable to v5, match functionality

* Bump react-swipeable

* use dir from swipeable

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

Successfully merging this pull request may close these issues.

Swiping through images in a gallery getting an error Swiping through images in a gallery getting an error
3 participants