-
Notifications
You must be signed in to change notification settings - Fork 150
Swiping through images in a gallery getting an error #128
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
Comments
@AndreyKuleb thanks for creating the issue.
I may be able to work on a PR for the above sometime over the next couple of weeks, but feel free to attempt if you'd like. PS As a side note those errors are more like warnings, since |
Can confirm this appears when { preventDefaultTouchmoveEvent: true } in v5 |
@13806 is your issue also related to https://github.com/xiaolin/react-image-gallery ? We just released 5.1.0 that also addressed this issue a bit mainly for safari browsers, but should have helped with this warning. |
@hartzis no, I'm using it standalone. Simply passing handlers into a div, like so:
When setting preventDefaultTouchmoveEvent to false, error does not occur. edit: |
@13806 sorry to hear the 5.1.0 update broke touch. It may be related to the new In 5.1.0, we added a If you are also attaching a
|
@13806 yes that seems to be it, I'm passing refs. However, your solution won't work for me since the main component needs to be able to take ref externally as a prop (and that other component passing down the ref doesn't know what handlers the useSwipeable main component would need, so I can't define handlers there). I wonder if there's a workaround. |
@13806 I'm really curious about how you're using Any way you can either post some code or create a codesandbox.io example? |
PR created to address in |
Closed for |
Describe the bug
I use a react-image-gallery, that use react-swipeable. When i am swiping gallery, an error in console appears (see image). There are the same bug1 and bug2 reports in react-image-gallery.
Expected behavior
In bug1 a decision was offered
** Device/Browser **
MacBook Pro (Retina, 15-inch, Mid 2015)
MacOS Mojave 10.14.11
Google Chrome ver 72.0.3626.119
Additional context


The text was updated successfully, but these errors were encountered: