1
0
mirror of https://github.com/videojs/video.js.git synced 2024-11-28 08:58:46 +02:00

@ldayananda fixed mouse handling on menus by using mouseleave over mouseout. closes #3404

This commit is contained in:
ldayananda 2016-07-18 14:44:08 -04:00 committed by Gary Katsevman
parent c51c19ae88
commit 7ae2c885a7
2 changed files with 3 additions and 2 deletions

View File

@ -20,6 +20,7 @@ CHANGELOG
* @MattiasBuelens updated components to use durationchange only ([view](https://github.com/videojs/video.js/pull/3349))
* @misteroneill improved Logging for IE < 11 ([view](https://github.com/videojs/video.js/pull/3356))
* @vdeshpande updated control text of modal dialog ([view](https://github.com/videojs/video.js/pull/3400))
* @ldayananda fixed mouse handling on menus by using mouseleave over mouseout ([view](https://github.com/videojs/video.js/pull/3404))
--------------------

View File

@ -141,8 +141,8 @@ class MenuButton extends ClickableComponent {
* @method handleClick
*/
handleClick() {
this.one('mouseout', Fn.bind(this, function(){
this.menu.unlockShowing();
this.one(this.menu.contentEl(), 'mouseleave', Fn.bind(this, function(e){
this.unpressButton();
this.el_.blur();
}));
if (this.buttonPressed_){