flutter_map
flutter_map copied to clipboard
[BUG] MacOS: Cannot scroll with trackpad inside scrollable if `InteractiveFlag.drag` enabled
What is the bug?
If I put FlutterMap inside ScrollView (e.g. SingleChildScrollView with a Column of several elements) I cannot scroll the scroll view with the trackpad if the mouse pointer is hovering over the map.
I added enableScrollWheel: false,
but it didn't help (Honestly, I see any difference with or without this property)
I found, that this happens only if interactiveFlags
contains InteractiveFlag.drag
element, otherwise scroll with the trackpad works fine.
What is the expected behaviour?
It should be possible to scroll the scrollview when hovering FlutterMap on macOS if enableScrollWheel: false,
passed
How can we reproduce this issue?
return SingleChildScrollView(
child: Column(children: [
SizedBox(
height: 224,
child: FlutterMap(
options: MapOptions(
interactiveFlags: InteractiveFlag.drag | InteractiveFlag.doubleTapZoom,
),
children: [
TileLayer(
// Free OSM
urlTemplate: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
subdomains: const ['a', 'b', 'c'],
),
],
),
),
const SizedBox(height: 2000),
]),
);
Do you have a potential solution?
No :( For some reason, it works fine on the Web
Can you provide any other information?
Platforms Affected
MacOS
Severity
Obtrusive: Prevents normal functioning but causes no errors in the console
Frequency
Consistently: Always occurs at the same time and location
Requirements
- [X] I agree to follow this project's Code of Conduct
- [X] My Flutter/Dart installation is unaltered, and
flutter doctor
finds no relevant issues - [X] I am using the latest stable version of this package
- [X] I have checked the FAQs section on the documentation website
- [X] I have checked for similar issues which may be duplicates