Skip to content

Prevent mouse dragging on OverlaySheet from dragging the entire sheet

Devin Lin requested to merge work/overlay-sheet-no-mouse-flick into master

I find that ability to drag and dismiss the sheet with touch is quite useful, but dragging it with mouse unnecessary, and can sometimes be annoying. This is because sometimes, you may want to click on content on the sheet, but you may accidentally drag it which moves the entire sheet, preventing you from clicking on the content and possibly closing the sheet.

Changes:

  • Move sheet closing on click outside of the sheet from onClick to onPressed, so that the user can expect the same behaviour as a regular dialog
  • Add HoverHandler to differentiate between mouse click and touch
  • Toggle interactive property of flickable when mouse is clicked

Merge request reports