Add new condition to MouseWheelZoom interaction
This commit is contained in:
@@ -2772,6 +2772,7 @@ olx.interaction.ModifyOptions.prototype.wrapX;
|
||||
|
||||
/**
|
||||
* @typedef {{constrainResolution: (boolean|undefined),
|
||||
* condition: (ol.EventsConditionType|undefined),
|
||||
* duration: (number|undefined),
|
||||
* timeout: (number|undefined),
|
||||
* useAnchor: (boolean|undefined)}}
|
||||
@@ -2779,6 +2780,15 @@ olx.interaction.ModifyOptions.prototype.wrapX;
|
||||
olx.interaction.MouseWheelZoomOptions;
|
||||
|
||||
|
||||
/**
|
||||
* A function that takes an {@link ol.MapBrowserEvent} and returns a boolean
|
||||
* to indicate whether that event should be handled. Default is {@link ol.events.condition.always}.
|
||||
* @type {ol.EventsConditionType|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.interaction.MouseWheelZoomOptions.prototype.condition;
|
||||
|
||||
|
||||
/**
|
||||
* Animation duration in milliseconds. Default is `250`.
|
||||
* @type {number|undefined}
|
||||
|
||||
Reference in New Issue
Block a user