Add 'condition' option to ol.interaction.DragPanOptions in olx.js

This commit is contained in:
Samuel Berger
2016-06-27 13:21:53 +02:00
parent 38f7aef6b0
commit a2326f7180

View File

@@ -2432,11 +2432,22 @@ olx.interaction.DragBoxOptions.prototype.boxEndCondition;
/**
* @typedef {{kinetic: (ol.Kinetic|undefined)}}
* @typedef {{condition: (ol.EventsConditionType|undefined),
* kinetic: (ol.Kinetic|undefined)}}
*/
olx.interaction.DragPanOptions;
/**
* 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.noModifierKeys}.
* @type {ol.EventsConditionType|undefined}
* @api
*/
olx.interaction.DragPanOptions.prototype.condition;
/**
* Kinetic inertia to apply to the pan.
* @type {ol.Kinetic|undefined}