diff --git a/externs/olx.js b/externs/olx.js index 4f1d6f5f07..1cdbffb777 100644 --- a/externs/olx.js +++ b/externs/olx.js @@ -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}