Merge pull request #5522 from SamuelBerger/master

Add 'condition' option to ol.interaction.DragPanOptions in olx.js
This commit is contained in:
Frédéric Junod
2016-06-29 14:52:34 +02:00
committed by GitHub

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}