Skip to content

Commit d761dae

Browse files
authored
fix(UI): Don't hide the UI when using the wheel over the UI (#8425)
Fixes #5930
1 parent eecf58f commit d761dae

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ui/controls.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1265,6 +1265,10 @@ shaka.ui.Controls = class extends shaka.util.FakeEventTarget {
12651265
this.onMouseLeave_();
12661266
});
12671267

1268+
this.eventManager_.listen(this.videoContainer_, 'wheel', (e) => {
1269+
this.onMouseMove_(e);
1270+
}, {passive: true});
1271+
12681272
this.eventManager_.listen(this.castProxy_, 'caststatuschanged', () => {
12691273
this.onCastStatusChange_();
12701274
});
@@ -1580,6 +1584,7 @@ shaka.ui.Controls = class extends shaka.util.FakeEventTarget {
15801584
// Only start a timeout on 'touchend' or for 'mousemove' with no touch
15811585
// events.
15821586
if (event.type == 'touchend' ||
1587+
event.type == 'wheel' ||
15831588
event.type == 'keyup'|| !this.lastTouchEventTime_) {
15841589
this.mouseStillTimer_.tickAfter(/* seconds= */ 3);
15851590
}

0 commit comments

Comments
 (0)