| 1 | flutter defines a list of pointer kinds that can scroll the screen.
|
| 2 | however, it does not bother recognizing the pointer kind on linux,
|
| 3 | so every pointer is set to be recognized as mouse. effectively, touch
|
| 4 | can't scroll anything. this workarounds the issue by making mouse
|
| 5 | one of the "touch-like device types".
|
| 6 |
|
| 7 | Bug: https://github.com/flutter/flutter/issues/63209
|
| 8 |
|
| 9 | |
| 10 | |
| 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].
|