-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
If a widgets sense both clicks and drags, we don't know wether or not a mouse press on it will be a short click or a long drag. With this PR, `response.dragged` and `response.drag_started` isn't true until we know it is a drag and not a click. If the widget ONLY senses drags, then we know as soon as someone presses on it that it is a drag. If it is sensitive to both clicks and drags, we don't know until the mouse moves a bit, or stays pressed down long enough. This PR also ensures that `response.clicked` and is only true for widgets that senses clicks.
- Loading branch information
Showing
7 changed files
with
279 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.