React-carousel causes touch issues with GOOGLE-MAPS
See original GitHub issueDescribe the bug
When using the library with google maps API, google map touch behavior becomes broken. For example, it doesn’t matter what options you supply to google maps (like gestureHandling), it won’t work as expected on touch devices if <Carousel />
is present somewhere inside the code.
To Reproduce
- Use simple https://github.com/adrianmcli/nano-react-app
- Install the library and add google maps API
- Insert
<Carousel />
component and init google map - See the problem on touch devices (also with chrome dev tools)
Repo to reproduce: https://github.com/shelooks16/react-carousel-touch-issue
replace const api = "API-KEY";
with a google-api key
Expected behavior To not broke google map touch behavior?
Screenshots
I deployed 2 web-pages: carousel imported: https://with-imported-carousel-issue.surge.sh/ carousel is not imported: https://without-imported-carousel-issue.surge.sh/
Additional context Tried with carousel v1.10.27 and v1.10.20. React v16.9.0
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (7 by maintainers)
Top Results From Across the Web
Why my react `Carousel` does not render properly?
First thing to note about your weird behaviour is that you are giving the wrong elements the key prop. Your Link (Outer most...
Read more >How to Use Google Maps in React Native - Part 2 - YouTube
This is part 2 of my React Native Map series. In this video I'll show how to create a carousel with items that...
Read more >#2 Sliding Items on MapView with Animation React Native ...
In this second part of react native maps tutorial, you'll learn how to add custom complex elements on mapview along with animation.
Read more >Performant Custom Map Markers for React-Native-Maps
Every time the map updates all of the custom markers are rendered which is quite inefficient as marker pins typically don't change (image...
Read more >Creating responsive, touch-friendly carousels with Flickity
I've created Flickity to resolve both these issues. For your users, Flickity's carousels are fun to flick. Flickity uses physics based ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It seems to be working
Just filled the form