Fix chrome not to blur on mouseout/focusout

may be related to https://code.google.com/p/chromium/issues/detail?id=321264 ?
This commit is contained in:
Antoine Abt
2014-02-26 11:15:25 +01:00
parent 7426da61ea
commit d53fa8f45a
3 changed files with 28 additions and 0 deletions

View File

@@ -52,6 +52,13 @@ ol.control.FullScreen = function(opt_options) {
goog.events.EventType.TOUCHEND
], this.handleClick_, false, this);
goog.events.listen(button, [
goog.events.EventType.MOUSEOUT,
goog.events.EventType.FOCUSOUT
], function() {
this.blur();
}, false);
goog.events.listen(goog.global.document, goog.dom.fullscreen.EventType.CHANGE,
this.handleFullScreenChange_, false, this);