Add ol.events.condition.never
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
@exportSymbol ol.events.condition.altKeyOnly
|
||||
@exportSymbol ol.events.condition.altShiftKeysOnly
|
||||
@exportSymbol ol.events.condition.always
|
||||
@exportSymbol ol.events.condition.never
|
||||
@exportSymbol ol.events.condition.noModifierKeys
|
||||
@exportSymbol ol.events.condition.platformModifierKeyOnly
|
||||
@exportSymbol ol.events.condition.shiftKeyOnly
|
||||
|
||||
@@ -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