Enable drag-to-scroll on desktop

This commit is contained in:
Shawn 2023-07-28 10:04:51 -06:00
parent fe83fc0c5d
commit 9b4d7cc226

View File

@ -8,9 +8,7 @@ class AppScrollBehavior extends ScrollBehavior {
// Add mouse drag on desktop for easier responsive testing // Add mouse drag on desktop for easier responsive testing
Set<PointerDeviceKind> get dragDevices { Set<PointerDeviceKind> get dragDevices {
final devices = Set<PointerDeviceKind>.from(super.dragDevices); final devices = Set<PointerDeviceKind>.from(super.dragDevices);
if (kDebugMode) {
devices.add(PointerDeviceKind.mouse); devices.add(PointerDeviceKind.mouse);
}
return devices; return devices;
} }