Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix awaitDragStartOnSlop to detect slop-passing on both axes. #534

Merged
merged 1 commit into from Apr 28, 2023

Conversation

m-sasha
Copy link

@m-sasha m-sasha commented Apr 28, 2023

Proposed Changes

Pass triggerOnMainAxisSlop = false to awaitPointerSlopOrCancellation so that it detects slop-passing on both axes.

Testing

Test: Added new unit tests to test vertical-only and horizontal-only dragging.

Issues Fixed

Fixes: JetBrains/compose-multiplatform#3108

@m-sasha m-sasha requested a review from eymar April 28, 2023 13:14
Copy link
Collaborator

@eymar eymar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! thank you!

@m-sasha m-sasha merged commit b72ce8e into jb-main Apr 28, 2023
2 checks passed
@m-sasha m-sasha deleted the m-sasha/fix-vertical-slop-in-modifier-ondrag branch April 28, 2023 13:46
Copy link

@X-oss-byte X-oss-byte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make a two way axes

igordmn pushed a commit that referenced this pull request Jul 18, 2023
This fixes AIDL failure in core playground

Test: ./gradlew :core:core:checkReleaseAidlApiRelease
Change-Id: I38614339310c8031995f2e412ce6084f43a0614b

This is an imported pull request from androidx#534.

Resolves #534
Github-Pr-Head-Sha: 249f03e
GitOrigin-RevId: 9dd8c41
Change-Id: I0051520ed18b15b3e4e64820b33b8782aecb2078
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants