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(mobile): Improve vertical swipe detection in gallery viewer #3486

Merged
merged 2 commits into from
Jul 31, 2023

Conversation

mPyKen
Copy link
Contributor

@mPyKen mPyKen commented Jul 31, 2023

On my device, I have had hard times opening up the details section / closing the photo viewer via the swipe-up / -down gesture in the gallery viewer. Either my device reports smaller deltas more frequently or I am generally slow with my gestures^^ How is it on other devices?

This PR changes this behavior by looking at the direction of the gesture (ratio of y/x difference). I could have reduced the existing delta sensitivity, but I wasn't sure if that affects other devices negatively.

@vercel
Copy link

vercel bot commented Jul 31, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
immich ⬜️ Ignored (Inspect) Jul 31, 2023 2:50pm

Copy link
Contributor

@alextran1502 alextran1502 left a comment

Choose a reason for hiding this comment

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

Thank you

@alextran1502 alextran1502 merged commit a9cd360 into immich-app:main Jul 31, 2023
19 checks passed
@mPyKen mPyKen deleted the fix/vertical-swipe-detection branch August 1, 2023 06:22
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