-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support PointerDeviceKind other than touch
#274
Comments
Hi @dickermoshe,
To be honest, I hadn’t given much thought to the desktop platforms as the package was originally intended for mobile. |
touch
Is there a reason we couldn't just replace that with? VerticalDragGestureRecognizer(
debugOwner: kDebugMode ? runtimeType : null,
supportedDevices: ScrollConfiguration.of(context).dragDevices,
) |
To support mouse wheels your gonna need to use a |
It is difficult to support mouse wheels as it is incompatible with the momentum scrolling and the snapping effects of sheets. See this comment for more details.
|
Hmmm, that's disappointing. |
Love this package, thanks so much for it!
I develop mobile app using Device Preview. It's much easier that dealing with android/ios emulators.
However, scroll on these devices uses the scroll wheel, not touch, so I use a
ScrollConfiguration
widget to add touch supportHowever
SheetDraggable
still wasn't working! But then I found thissmooth_sheets/lib/src/draggable/sheet_draggable.dart
Lines 84 to 98 in 1166df3
@fujidaiti Why is this hardcoded to touch devices only?
The text was updated successfully, but these errors were encountered: