1
0
mirror of https://github.com/videojs/video.js.git synced 2025-01-02 06:32:07 +02:00

fix: hide mouse tooltip on touch devices when not scrubbing

Problem: the vjs-user-inactive class triggering the hiding of the
tooltip is added much later on touch devices, therefore the mouse
tooltip stays visible on its last seek target position whenever the user
taps the screen to access the controls.

This change ensures that the mouse tooltip is only visible when the user
is actually scrubbing.
This commit is contained in:
Christian Ebert 2024-12-21 16:05:37 +00:00
parent 19ca3f2ebe
commit 79a0fc9379

View File

@ -178,7 +178,8 @@
display: block;
}
.video-js.vjs-user-inactive .vjs-progress-control .vjs-mouse-display {
.video-js.vjs-user-inactive .vjs-progress-control .vjs-mouse-display,
.video-js.vjs-touch-enabled:not(.vjs-scrubbing) .vjs-progress-control .vjs-mouse-display {
visibility: hidden;
opacity: 0;
$trans: visibility 1.0s, opacity 1.0s;