stopPropagation/preventDefault on originalEvent

Move stopPropagation/preventDefault to directly target the
originalEvent rather than the mapBrowserEvent.
This commit is contained in:
Greg Gianforcaro
2020-12-09 11:42:53 -05:00
parent 92f93e8e94
commit 9c2b0677fa
5 changed files with 7 additions and 8 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ class DoubleClickZoom extends Interaction {
const delta = browserEvent.shiftKey ? -this.delta_ : this.delta_;
const view = map.getView();
zoomByDelta(view, delta, anchor, this.duration_);
mapBrowserEvent.preventDefault();
browserEvent.preventDefault();
stopEvent = true;
}
return !stopEvent;