Skip to content

Commit c2d8945

Browse files
aveladjoeyparrish
authored andcommitted
fix(UI): Hidden cursor correctly (#7464)
Fixes #7394
1 parent 9f6ff06 commit c2d8945

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

ui/controls.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1301,7 +1301,7 @@ shaka.ui.Controls = class extends shaka.util.FakeEventTarget {
13011301
}
13021302

13031303
// Use the cursor specified in the CSS file.
1304-
this.videoContainer_.style.cursor = '';
1304+
this.videoContainer_.classList.remove('no-cursor');
13051305

13061306
this.recentMouseMovement_ = true;
13071307

@@ -1354,7 +1354,7 @@ shaka.ui.Controls = class extends shaka.util.FakeEventTarget {
13541354
*/
13551355
onMouseStill_() {
13561356
// Hide the cursor.
1357-
this.videoContainer_.style.cursor = 'none';
1357+
this.videoContainer_.classList.add('no-cursor');
13581358
this.recentMouseMovement_ = false;
13591359
this.computeOpacity();
13601360
}

ui/less/containers.less

+8
Original file line numberDiff line numberDiff line change
@@ -394,3 +394,11 @@
394394
/* keep the rewind button to the left */
395395
.absolute-position();
396396
}
397+
398+
.shaka-video-container.no-cursor {
399+
cursor: none !important;
400+
401+
* {
402+
cursor: none !important;
403+
}
404+
}

0 commit comments

Comments
 (0)