Skip to content

Improve drag handling and animation#38

Open
rustobi wants to merge 3 commits intoNikhilVadoliya:masterfrom
rustobi:fix/drag-while-disabled
Open

Improve drag handling and animation#38
rustobi wants to merge 3 commits intoNikhilVadoliya:masterfrom
rustobi:fix/drag-while-disabled

Conversation

@rustobi
Copy link
Copy Markdown

@rustobi rustobi commented Oct 8, 2025

This MR ensures that dragging is only processed when _isDragging is set to true.
Previously, the slider could incorrectly open when the user interacted at the opposite end of the screen.

Additionally, a start offset is now applied to the drag delta to smooth the animation and prevent abrupt jumps when beginning to drag.

@rustobi rustobi changed the title Respect isDragging flag in updates Improve drag handling and animation Oct 8, 2025
@rustobi
Copy link
Copy Markdown
Author

rustobi commented Oct 8, 2025

Feel free to test the example app on both the master branch and this MR branch.
Try swiping left-to-right and right-to-left to compare the behavior.

I was thinking about disabling the animation curve during manual dragging, but this caused issues when the drawer closes or opens automatically. It would feel at least natural for the drag interaction.

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.

1 participant