oliviertassinari / react-swipeable-views

A React component for swipeable views. :snowflake:
https://react-swipeable-views.com/
MIT License
4.46k stars 479 forks source link

Drag to left is not working properly when child have overflowed image #637

Open yusa-imit opened 3 years ago

yusa-imit commented 3 years ago

Expected Behavior

Same as Demo's Simple Case. Code is almost same without inline styling.

Current Behavior

If silde's child have overflowed image, then move to right(same as drag to left) is not working.

Explain more details. If the module have any overflowed image in child slides, then drag to left is broke. Seems like event is not occurs. When I'm triggering drag to right(drag to right a little bit), and then move to left, then drag to left working.

Steps to Reproduce (for bugs)

You can test it with codesandbox. I'd copied almost same code that I used.

CODE SANDBOX HERE

Context

Your Environment

Tech Version
react-swipeable-views 0.13.9
React 17.0.1
platform chrome
etc
Yakimych commented 3 years ago

Could it be the same reason as in this issue: https://github.com/oliviertassinari/react-swipeable-views/issues/228? You could try setting ignoreNativeScroll, that was implemented in the linked PR, and see if it solves the problem.