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

UX/UI Changes. Video Player gesture improvements. #2

Merged
merged 5 commits into from
Dec 13, 2023

Conversation

danielbady
Copy link
Contributor

Added several UX/UI tweaks.

  • Bottom padding for playlist items
  • min height for MacOS module listing sheet
  • overlay does not disappear while seeking
  • small spacing between video controls to prevent fat-thumbing

Added Video Player Gesture improvements

  • Double tap to go backwards/forwards
  • Magnification gesture now scales depending whether pinch or zoom gesture is made
  • Video now seeks while dragging to show current frames

@danielbady danielbady marked this pull request as draft December 9, 2023 20:52
@danielbady danielbady marked this pull request as ready for review December 9, 2023 23:38
@ErrorErrorError ErrorErrorError added bug Something isn't working enhancement New feature or request and removed bug Something isn't working labels Dec 13, 2023

dragProgress = max(0, min(1.0, percentage))
dragProgress = max(0, min(1.0, value.location.x / proxy.size.width))
viewState.send(.didSkipTo(time: dragProgress))
Copy link
Contributor

Choose a reason for hiding this comment

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

Hm, I am not sure if we should send the drag progress while the user is still sliding. I have concerns about it affecting/blocking the main thread.

Maybe adding it to onEnded?

@ErrorErrorError
Copy link
Contributor

lgtm :D

@ErrorErrorError ErrorErrorError merged commit 68fee9d into Mochi-Team:dev Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants