-
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
fix(volume): vertical slider causes viewport overflow in rtl layout #8320
base: main
Are you sure you want to change the base?
Conversation
ObservationThe current behavior allows users to hover over the volume slider when it's disappearing to make it reappear. actual-behavior.webmWith this fix, the behavior doesn't allow users to hover over the volume slider when it's disappearing to make it reappear, which is a regression. behavior-with-fix.webmTo test the fix open the preview page, then in the browser's developer console paste |
ObservationThis is outside the scope of this fix. On touchscreen devices, a long press on the volume button displays the volume slider. Usually, on this type of device, a user would tend to use the device's physical buttons to adjust the volume. video.js/src/css/components/_volume.scss Lines 39 to 41 in 2b0df25
|
I'm putting this PR up for review to get opinions and maybe find a better approach that doesn't introduce regression. Please see comment #8320 (comment) |
Yes, my expectation would be that on a phone/tablet the user would use the physical buttons for volume instead of the web UI. |
@misteroneill thank you for the feedback. I'll try to create a PR to solve this problem this week-end. |
Description
This PR fixes #7743 where a scroll bar appears when the text direction is set to RTL.
Screencast.from.13.06.23.19.02.52.webm
Specific Changes proposed
.video-js .vjs-volume-vertical
width
/height
so that it falls back to.video-js .vjs-volume-panel .vjs-volume-control
pointer-events
set tonone
so that the slider does not appear when the mouse is over the volume buttonwidth
,height
andpointer-events
when the mouse hovers over the volume buttonRequirements Checklist