-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Volume slider sticky and jumps on Chrome #6989
Comments
This may be related to us tying muted and volume state together in the UI. We store the last volume value and restore it on mute/unmute and also drag to zero. It's probably a weird interaction with that. |
Hello, thanks for your comment. Are you able to provide which version of video.js is running on https://videojs.com/? As mentioned previously the issue doesn't occur for me on Chrome when using the volume slider on the fantasy theme demo. You mentioned the tying of muting and volume state together in the UI, which version of video.js was this change introduced in? |
Looks like videojs.com is using v7.9.2. In 7.9.4 we merged this PR #5773, so, I assume it may be related. |
Let me know if this issue is still available @gkatsev . This can serve as a good first time ticket. |
It's available, feel free to take a look, though, I'm not sure if it's a great first ticket. |
I am starting to work on it. Hopefully, I will get to understand the source code in the process. |
I am starting to work on it. Hopefully, I will get to understand the source code in the process. My first investigation show that the issue is related to the slider control translating when you move the scrubber. This momentarily changes the position of the volume control thereby accepting an inadvertently clicking on the volume, thereby muting the play. I have reproduced on my system |
I am seeing that there are two sliders (volume slider and playback slider). When you over controls, we have both sliders are horizontal sliders. I am recommending two changes
to
The current volume slider is
Let me know if the proposals are reasonable and possible pointers for making the volume slider to be vertical. Once I get some feedback, I will proceed to PR @gkatsev |
apowerful1 has contributed $25.00 to this issue on Rysolv. |
When sliding volume down to mute it sticks and then repositions incorrectly Fixes videojs#6989
Description
See https://streamable.com/hcvagg for a short video demo.
When sliding the volume control there are times it sticks and then repositions incorrectly, it only happens when sliding down to mute.
https://codepen.io/gkatsev/pen/GwZegv?editors=1000#0
It happens for me on this start template video, I'm using Google Chrome (doesn't happen with Safari or Firefox).
On the video.js website if I select the 'fantasy' demo which uses a similar volume slider, the issue does not seem to occur. However if I use the fantasy theme on my own project the issue does occur, like with the default theme as shown in the linked video.
Only seems to happen when the cursor shows as a pointer too.
Steps to reproduce
Explain in detail the exact steps necessary to reproduce the issue.
Results
Expected
I expect the slide circle to stop at the mute point and remain there, and then smoothly increase if I slide to the right.
Actual
As seen in video.
Error output
No errors.
Additional Information
Please include any additional information necessary here. Including the following:
versions
videojs
7.10.2
browsers
Google Chrome: Version 87.0.4280.88 (Official Build) (x86_64).
OSes
macOS Catalina 10.15.5
The text was updated successfully, but these errors were encountered: