Add ol.events.condition.mouseMove

This commit is contained in:
Éric Lemoine
2014-06-30 09:07:16 +02:00
parent 700a0b15b3
commit 67c2e46c19

View File

@@ -55,6 +55,16 @@ ol.events.condition.altShiftKeysOnly = function(mapBrowserEvent) {
ol.events.condition.always = goog.functions.TRUE;
/**
* @param {ol.MapBrowserEvent} mapBrowserEvent Map browser event.
* @return {boolean} True if the browser event is a `mousemove` event.
* @todo api
*/
ol.events.condition.mouseMove = function(mapBrowserEvent) {
return mapBrowserEvent.originalEvent.type == 'mousemove';
};
/**
* Always false.
* @param {ol.MapBrowserEvent} mapBrowserEvent Map browser event.