projects/aports·blob master · refs

18 lines · 751 B

1flutter defines a list of pointer kinds that can scroll the screen.
2however, it does not bother recognizing the pointer kind on linux,
3so every pointer is set to be recognized as mouse. effectively, touch
4can't scroll anything. this workarounds the issue by making mouse
5one of the "touch-like device types".
6
7Bug: https://github.com/flutter/flutter/issues/63209
8
9--- ./packages/flutter/lib/src/widgets/scroll_configuration.dart.orig
10+++ ./packages/flutter/lib/src/widgets/scroll_configuration.dart
11@@ -25,6 +25,7 @@
12 // The VoiceAccess sends pointer events with unknown type when scrolling
13 // scrollables.
14 PointerDeviceKind.unknown,
15+ PointerDeviceKind.mouse,
16 };
17
18 /// The default overscroll indicator applied on [TargetPlatform.android].