react-swipeable-views icon indicating copy to clipboard operation
react-swipeable-views copied to clipboard

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

Open yusa-imit opened this issue 3 years ago • 1 comments

  • [x] I have searched the issues of this repository and believe that this is not a duplicate.

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

yusa-imit avatar Feb 15 '21 02:02 yusa-imit

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.

Yakimych avatar Feb 16 '21 08:02 Yakimych