From a1386e3a1f986a96fff4105aff735c46c3a6234b Mon Sep 17 00:00:00 2001 From: Andreas Hocevar Date: Tue, 10 Mar 2020 09:36:10 +0100 Subject: [PATCH] Update comment --- src/ol/MapBrowserEventHandler.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ol/MapBrowserEventHandler.js b/src/ol/MapBrowserEventHandler.js index 18f5899701..e9b37eb8c6 100644 --- a/src/ol/MapBrowserEventHandler.js +++ b/src/ol/MapBrowserEventHandler.js @@ -275,7 +275,8 @@ class MapBrowserEventHandler extends EventTarget { * @private */ handleTouchMove_(event) { - // In some environments (such as iOS 12), this handler can get called once before the `originalPointerMoveEvent_` is initialized. This prevents crashes in those situations (but may not work correctly if `originalPointerMoveEvent_` lags behind the current event?). + // Due to https://github.com/mpizenberg/elm-pep/issues/2, `this.originalPointerMoveEvent_` + // may not be initialized yet when we get here on a platform without native pointer events. if (this.originalPointerMoveEvent_ && this.originalPointerMoveEvent_.defaultPrevented) { event.preventDefault(); }