mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 21:19:41 -06:00
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:
parent
ff72522f30
commit
4229e3f22c
@ -112,7 +112,9 @@ export default Component.extend(KeyEnterEscape, {
|
||||
START_DRAG_EVENTS.forEach((startDragEvent) => {
|
||||
this.element
|
||||
.querySelector(".grippie")
|
||||
?.addEventListener(startDragEvent, this.startDragHandler);
|
||||
?.addEventListener(startDragEvent, this.startDragHandler, {
|
||||
passive: false,
|
||||
});
|
||||
});
|
||||
|
||||
if (this._visualViewportResizing()) {
|
||||
|
Loading…
Reference in New Issue
Block a user