Skip to content

Commit

Permalink
Relay mouseout browser event
Browse files Browse the repository at this point in the history
  • Loading branch information
fredj committed Jun 7, 2013
1 parent 286438a commit d05bb87
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/ol/mapbrowserevent.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,10 @@ ol.MapBrowserEventHandler = function(map) {
this.handleMouseDown_, false, this),
goog.events.listen(element,
goog.events.EventType.MOUSEMOVE,
this.relayMouseMove_, false, this)
this.relayEvent_, false, this),
goog.events.listen(element,
goog.events.EventType.MOUSEOUT,
this.relayEvent_, false, this)
];
// touch events
this.touchListenerKeys_ = [
Expand Down Expand Up @@ -284,9 +287,9 @@ ol.MapBrowserEventHandler.prototype.handleMouseMove_ = function(browserEvent) {
* @param {goog.events.BrowserEvent} browserEvent Browser event.
* @private
*/
ol.MapBrowserEventHandler.prototype.relayMouseMove_ = function(browserEvent) {
ol.MapBrowserEventHandler.prototype.relayEvent_ = function(browserEvent) {
this.dispatchEvent(new ol.MapBrowserEvent(
ol.MapBrowserEvent.EventType.MOUSEMOVE, this.map_, browserEvent));
browserEvent.type, this.map_, browserEvent));
};


Expand Down Expand Up @@ -372,5 +375,6 @@ ol.MapBrowserEvent.EventType = {
TOUCHSTART: goog.events.EventType.TOUCHSTART,
TOUCHMOVE: goog.events.EventType.TOUCHMOVE,
TOUCHEND: goog.events.EventType.TOUCHEND,
MOUSEMOVE: goog.events.EventType.MOUSEMOVE
MOUSEMOVE: goog.events.EventType.MOUSEMOVE,
MOUSEOUT: goog.events.EventType.MOUSEOUT
};

0 comments on commit d05bb87

Please sign in to comment.