react-gallery-carousel
react-gallery-carousel copied to clipboard
shouldMaximizeOnClick doesn't work
I have Carousel with shouldMinimizeOnClick and shouldMaximizeOnClick. In mobile version maximize working great, but if I click on toggle device toolbar and click on image it doesn't work.
Steps to reproduce the behavior:
- Go to https://yifaneye.github.io/react-gallery-carousel/
- Open console and click on "Toggle device toolbar". Choose Some phone(for example IPhone XR)
- Scroll down to carousel with shouldMaximizeOnClick
- See error

Hi @Ruslan27032000 Thanks for raising this issue up! I will investigate!
Hi @Ruslan27032000 !
This issue is because the touch event is recognized additionally as a mouse event on simulated mobile devices (e.g. Toggle Device Toolbar on Chrome).
It is now fixed in v0.3.0. See the gif below. 😁
