diff --git a/src/js/player.js b/src/js/player.js index 2cf0eb2119..520ca1cc36 100644 --- a/src/js/player.js +++ b/src/js/player.js @@ -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');