-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 volume slider behavior #117
Fix volume slider behavior #117
Conversation
Hmm... I guess this isn't properly complete yet. Further testing has shown that just plain clicking is no longer enough to adjust volume. I'm not well versed in JS, can I add the original And since Android also relies on jf-web, It will need testing before we want to merge this in. |
You can add as many event listeners as you want with separate calls eg. nowPlayingVolumeSlider.addEventListener("mousemove", function () {
dostuff();
});
nowPlayingVolumeSlider.addEventListener("click", function () {
dostuff();
}); |
90c8200
to
41bb7cb
Compare
This now works as one would expect on web. I am positive it will work as expected on Android, but I would sleep better if @dkanada or @thornbill would test this PR first. Now ready for full review if anyone has been holding off! |
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.
Code seems functionally fine.
Waiting to see response on my feedback on de-uglification before stamping approval.
Updates volume correctly as you slide back and forth, but does not change icon to mute when at 0 or update bar length. Has no impact on music playback.
Same problems as video when on nowplaying.html, all other pages are still behaving as before (when the playback bar is along the bottom).
Now updates when dragging
bf489b3
to
789eed4
Compare
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.
Please answer my de-uglification comments as well.
490d8e3
to
9dac233
Compare
Pending responses to my questions. Changes marked resolved are now pushed or were tested and they broke things. Also, confirmed that there does not appear to be a bug with slider behavior like I originally thought. Once the suggested changes are in place this is mergable imo. |
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.
LGTM pending answer to a couple of unresolved conversations.
They could be safely ignored for now if wanted, though, as they're minor in a sense.
9dac233
to
f3e46a3
Compare
Volume sliders now adjust volume when dragged (used to to only work when you stopped clicking).
Fixes #113