Do not check for listeners, as suggested by @fredj
This commit is contained in:
@@ -295,11 +295,8 @@ ol.MapBrowserEventHandler.prototype.handleMouseMove_ = function(browserEvent) {
|
|||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.MapBrowserEventHandler.prototype.relayMouseMove_ = function(browserEvent) {
|
ol.MapBrowserEventHandler.prototype.relayMouseMove_ = function(browserEvent) {
|
||||||
if (goog.events.hasListener(
|
this.dispatchEvent(new ol.MapBrowserEvent(
|
||||||
this.map_, ol.MapBrowserEvent.EventType.MOUSEMOVE)) {
|
ol.MapBrowserEvent.EventType.MOUSEMOVE, this.map_, browserEvent));
|
||||||
this.dispatchEvent(new ol.MapBrowserEvent(
|
|
||||||
ol.MapBrowserEvent.EventType.MOUSEMOVE, this.map_, browserEvent));
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user