Is there a way to set the behavior for canceling b...
# compose-desktop
s
Is there a way to set the behavior for canceling button clicks? It seems like if a user moves the mouse a pixel between pressing and releasing, the click is canceled. I'd like the click to be registered as long as the user hasn't moved the cursor off the button before releasing.
After some investigation, it turns out that
ModalNavigationDrawer
is overzealous and easily hijacks and clicking jitter when gestures are enabled. Turning that off really improves things. Maybe I should file a bug against that.
z
Sounds like it’s ignoring touch slop in
ViewConfiguration
(which is where you’d typically configure or disable this)
s
Mouse events ignore touch slop. Probably the
ModalNavigationDrawer
should ignore mouse drag events.