-
Notifications
You must be signed in to change notification settings - Fork 19
Fix ghost clicks on chapter and stream select #30
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 ghost clicks on chapter and stream select #30
Conversation
|
Thanks for the PR. Keep them coming. Next time please use "Fixes" keyword followed by Issue no. in your PR description to automatically link and close an associated issue when the pull request is merged. If a previously unreported bug is found in the NewPlayer, please don't hesitate to create a new issue about that first. Thank you. |
|
I didn't use the |
This comment was marked as outdated.
This comment was marked as outdated.
f60f8fa to
34aa493
Compare
TobiGr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you. Changes LGTM, I just have a nitpick.
I also could not find a good way to test the stream select UI for this specific case. (We really need to set up proper testing...)
new-player/src/main/java/net/newpipe/newplayer/ui/selection_ui/StreamSelectUI.kt
Outdated
Show resolved
Hide resolved
|
I think I found a way to test the StreamSelectUI in this specific use case:
The stream select UI is the queue UI. If it is not used anywhere else we should think about renaming it because stream select implies (at least for me), that multiple resolutions or audio streams can be selected with it. |
|
I'm going to check this. :) |
|
lgdm :) |
|
@lm41 although this is only partly a fix, because now the tap is being ignored, which is better than before, but what I would actually expect as a user is for GuestureUI to react on the tap. |
|
@theScrabi I think it's fine to ignore taps while stuff is phasing in/out. However we should change the animation Easing so that it's clear when the animation is still running (something like SlowInFastOut, or even just linear). |
|
@theScrabi I'm currently not at home but I'll have a look into that later next week |
We possibly could, but that would probably mean that we would have to intercept touch events and pass them to the GestureUI. |
What is it?
Description of the changes in your PR
This PR fixes ghost clicks (#3) on the chapter select box. The same logic can be applied to the stream select UI but I couldn't find a way to test the stream select UI so I left it out for now.
Fixes the following issue(s)
Due diligence