From 10a624db3c0c977505bf995e43a34a8adf48b0ac Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 26 Feb 2020 20:36:07 -0500 Subject: [PATCH 1/2] Update MouseWheelZoom.js --- src/ol/interaction/MouseWheelZoom.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ol/interaction/MouseWheelZoom.js b/src/ol/interaction/MouseWheelZoom.js index f782af739d..ec29868e89 100644 --- a/src/ol/interaction/MouseWheelZoom.js +++ b/src/ol/interaction/MouseWheelZoom.js @@ -23,6 +23,8 @@ export const Mode = { * takes an {@link module:ol/MapBrowserEvent~MapBrowserEvent} and returns a * boolean to indicate whether that event should be handled. Default is * {@link module:ol/events/condition~always}. + * In addition, if there is a `tabindex` attribute on the map element, + * {@link module:ol/events/condition~focus} will also be applied. * @property {number} [maxDelta=1] Maximum mouse wheel delta. * @property {number} [duration=250] Animation duration in milliseconds. * @property {number} [timeout=80] Mouse wheel timeout duration in milliseconds. From b695320dcfa04d22b274ce51c14a9d9937ffd1e6 Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 26 Feb 2020 20:37:51 -0500 Subject: [PATCH 2/2] Update DragPan.js --- src/ol/interaction/DragPan.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ol/interaction/DragPan.js b/src/ol/interaction/DragPan.js index 1c98592308..2b3f6ba755 100644 --- a/src/ol/interaction/DragPan.js +++ b/src/ol/interaction/DragPan.js @@ -13,6 +13,8 @@ import PointerInteraction, {centroid as centroidFromPointers} from './Pointer.js * @property {import("../events/condition.js").Condition} [condition] A function that takes an {@link module:ol/MapBrowserEvent~MapBrowserEvent} and returns a boolean * to indicate whether that event should be handled. * Default is {@link module:ol/events/condition~noModifierKeys} and {@link module:ol/events/condition~primaryAction}. + * In addition, if there is a `tabindex` attribute on the map element, + * {@link module:ol/events/condition~focus} will also be applied. * @property {import("../Kinetic.js").default} [kinetic] Kinetic inertia to apply to the pan. */