forked from androidx/androidx
-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
Pager
direction detection for mouse wheel (#1103)
## Proposed Changes `Pager` uses `upDownDifference` as a source of a scrolling direction that is not correct in the case of mouse wheel scrolling. This PR adds fallback to a velocity direction if drag distance is zero. ## Testing Test: try to scroll back `Pager` in mpp Before https://github.com/JetBrains/compose-multiplatform-core/assets/1836384/d40d41e8-398a-4108-b05f-c06989ca26e1 After https://github.com/JetBrains/compose-multiplatform-core/assets/1836384/05394ff3-6c51-4e30-b771-af9c07e516b5
- Loading branch information
1 parent
9a39a79
commit fcaca4d
Showing
2 changed files
with
7 additions
and
3 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