Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SnackBar] Make dismiss direction the same as swipe direction
In SwipeDismissBehavior, when dismissing views according to the horizontal velocity instead of position delta, we would still using position delta to decide the dismissing direction, which, unfortunately, makes the view always be dismissed from left to right because of the "less than" logic we are using doesn't really take the equaling case into account. Fixes this by using the velocity direction to dismiss the view instead. Resolves #1868 PiperOrigin-RevId: 442553318
- Loading branch information