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 the full scene swipe without intercepting touch events #347

Merged
merged 1 commit into from
Jul 20, 2024

Conversation

artsmvch
Copy link
Contributor

@artsmvch artsmvch commented Jul 8, 2024

Currently, the swipe back gesture is controlled by SwipeProperties, and the gesture space is set by spaceToSwipe.
The problem with the current approach is that all touch events within the spaceToSwipe space are intercepted. If one needs to enable the full scene swipe (like it's done in Telegram), then none of the elements within the scene will be available for interactaction.

This pull request introduces a fix for the full scene swipe without intercepting touch events.
ThespaceToSwipe property has also been removed because it is not compatible with the fix and because the swipe-back gesture usually works across the entire scene.

@Tlaster
Copy link
Owner

Tlaster commented Jul 16, 2024

Sorry for the late response, I was away from internet last week.
Everything LGTM! You might forget to apply the code style by ./gradlew spotlessApply?

@artsmvch artsmvch force-pushed the artsmvch/fix-swipe-to-back branch from d5d36a6 to 3280cea Compare July 17, 2024 12:06
@artsmvch
Copy link
Contributor Author

@Tlaster yep, I fixed the code style

Copy link
Owner

@Tlaster Tlaster left a comment

Choose a reason for hiding this comment

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

Thanks for the PR, LGTM!

@Tlaster Tlaster merged commit 1df2c32 into Tlaster:master Jul 20, 2024
2 checks passed
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.

2 participants