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 for swiping to dismiss and cancelling by moving to the sides #6

Merged
merged 4 commits into from
Mar 16, 2021

Conversation

vuongp
Copy link
Contributor

@vuongp vuongp commented Mar 15, 2021

There was a bug where you drag down an image (and hold it) within a viewpager and moved horizontally where it cancels and triggers the outOfBoundScrolledListener.

This fix makes the image animate back without triggering outOfBoundScrolledListener in ScrollHandler.kt

@TimGW TimGW self-requested a review March 16, 2021 09:27
@mennovogel
Copy link
Contributor

The example app doesn't build anymore, could you fix this aswell please?

Beside that, I see that it's still pretty hard to drag down the image. When you drag with an angle of 160°, instead of 180° it doesn't work.

@vuongp
Copy link
Contributor Author

vuongp commented Mar 16, 2021

Done!

@vuongp vuongp self-assigned this Mar 16, 2021
@vuongp vuongp merged commit 1096c57 into master Mar 16, 2021
@vuongp vuongp deleted the bugfix/out_of_bound_listener_on_motion_cancel branch March 16, 2021 13:53
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.

None yet

4 participants