DEV: Set passive: false on composer grippie events

We do call `event.preventDefault()` on these events. They're limited to a single element, so performance impact should be negligable. Adding `passive: false` prevents the chrome dev tools warning.
This commit is contained in:
David Taylor 2021-11-26 16:17:00 +00:00
parent ff72522f30
commit 4229e3f22c

View File

@ -112,7 +112,9 @@ export default Component.extend(KeyEnterEscape, {
START_DRAG_EVENTS.forEach((startDragEvent) => { START_DRAG_EVENTS.forEach((startDragEvent) => {
this.element this.element
.querySelector(".grippie") .querySelector(".grippie")
?.addEventListener(startDragEvent, this.startDragHandler); ?.addEventListener(startDragEvent, this.startDragHandler, {
passive: false,
});
}); });
if (this._visualViewportResizing()) { if (this._visualViewportResizing()) {