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