-
I have a map with a card that floats on top of that map. Inside of the card, I have a ListView that you can scroll through. Here's the problem: Everything works great until I reach the end of the scroll, at which point it starts zooming in/out the map below it. I have tried everything I could think of to try to prevent this behavior but I can't figure out how to stop the scroll event from propagating from the listview into a zoom... It seems like no matter what I attempt to do, when the list view can't scroll anymore flutter_map is taking over and the scrolls start becoming zoom in/out instead behind the card. Has anyone experienced this before and can offer some help? I'm straight out of ideas. This is Flutter 3.27.3, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
Could you post a showcase video and some code of your implementation please? |
Beta Was this translation helpful? Give feedback.
-
Here is a small video. The code is a little harder because it's part of a much larger application but essentially I have this:
As you can see in the video the list view behaves properly until I hit the overflow up/down, at which point the map starts zooming in/out - the behavior I want is at the end of the list additional scrolling does nothing. Screen.Recording.2025-02-08.at.2.39.32.PM.mov |
Beta Was this translation helpful? Give feedback.
-
I have. |
Beta Was this translation helpful? Give feedback.
Strange. Let's try to use a MouseRegion with its onEnter and onExit callback. On enter, disable the scrollWheelZoom gesture of the map, on exit enable it again.