From a2326f718061e18eed3a7fef2c9f4823699a740c Mon Sep 17 00:00:00 2001 From: Samuel Berger Date: Mon, 27 Jun 2016 13:21:53 +0200 Subject: [PATCH] Add 'condition' option to ol.interaction.DragPanOptions in olx.js --- externs/olx.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/externs/olx.js b/externs/olx.js index ea8cc2fb2e..ce62964c71 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}