mirror of
https://github.com/videojs/video.js.git
synced 2025-07-13 01:30:17 +02:00
committed by
Gary Katsevman
parent
7008777985
commit
6f77778a70
@ -3860,7 +3860,7 @@ class Player extends Component {
|
|||||||
mouseInProgress = this.setInterval(handleActivity, 250);
|
mouseInProgress = this.setInterval(handleActivity, 250);
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleMouseUp = function(event) {
|
const handleMouseUpAndMouseLeave = function(event) {
|
||||||
handleActivity();
|
handleActivity();
|
||||||
// Stop the interval that maintains activity if the mouse/touch is down
|
// Stop the interval that maintains activity if the mouse/touch is down
|
||||||
this.clearInterval(mouseInProgress);
|
this.clearInterval(mouseInProgress);
|
||||||
@ -3869,7 +3869,8 @@ class Player extends Component {
|
|||||||
// Any mouse movement will be considered user activity
|
// Any mouse movement will be considered user activity
|
||||||
this.on('mousedown', handleMouseDown);
|
this.on('mousedown', handleMouseDown);
|
||||||
this.on('mousemove', handleMouseMove);
|
this.on('mousemove', handleMouseMove);
|
||||||
this.on('mouseup', handleMouseUp);
|
this.on('mouseup', handleMouseUpAndMouseLeave);
|
||||||
|
this.on('mouseleave', handleMouseUpAndMouseLeave);
|
||||||
|
|
||||||
const controlBar = this.getChild('controlBar');
|
const controlBar = this.getChild('controlBar');
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user