Add ol.events.condition.never
This commit is contained in:
@@ -55,6 +55,15 @@ ol.events.condition.altShiftKeysOnly = function(mapBrowserEvent) {
|
||||
ol.events.condition.always = goog.functions.TRUE;
|
||||
|
||||
|
||||
/**
|
||||
* Always false.
|
||||
* @param {ol.MapBrowserEvent} mapBrowserEvent Map browser event.
|
||||
* @return {boolean} False.
|
||||
* @todo stability experimental
|
||||
*/
|
||||
ol.events.condition.never = goog.functions.FALSE;
|
||||
|
||||
|
||||
/**
|
||||
* @param {ol.MapBrowserEvent} mapBrowserEvent Map browser event.
|
||||
* @return {boolean} True if the event is a click event.
|
||||
|
||||
Reference in New Issue
Block a user