Skip to content

fix(pkg): SheetDraggable ignores the gesture settings of the MediaQuery - #644

Open
fryette wants to merge 2 commits into
fujidaiti:mainfrom
fryette:fix/sheet-draggable-gesture-settings
Open

fryette wants to merge 2 commits into
fujidaiti:mainfrom
fryette:fix/sheet-draggable-gesture-settings

Conversation

@fryette

@fryette fryette commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

When MediaQuery provides custom gesture settings, for example a smaller touchSlop, a drag that starts on a non-scrollable part of a sheet still needs to travel the default 18 logical pixels before the sheet starts moving, while Scrollable and GestureDetector honor the custom value. This makes sheet drags feel inconsistent with the rest of the UI.

SheetDraggable builds its VerticalDragGestureRecognizer by hand and never applied the inherited gesture settings. The recognizer now follows MediaQuery.gestureSettings, and the default touch slop is unchanged when the MediaQuery provides none.

SheetDraggable creates its VerticalDragGestureRecognizer by hand and never applied the inherited MediaQuery gesture settings, so a custom touch slop was ignored when a drag started on a non-scrollable part of the sheet, while Scrollable and GestureDetector honor it. The recognizer now follows MediaQuery.gestureSettings.
@fryette
fryette requested a review from fujidaiti as a code owner November 8, 2026 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants