Skip to content

A platform for community discussion. Free, open, simple.

DEV: Set `passive: false` on composer grippie events

David Taylor4229e3f22caa
diff --git a/app/assets/javascripts/discourse/app/components/composer-body.js b/app/assets/javascripts/discourse/app/components/composer-body.js
index fb8bf92456b..4be24a8df8d 100644
--- a/app/assets/javascripts/discourse/app/components/composer-body.js
+++ b/app/assets/javascripts/discourse/app/components/composer-body.js
@@ -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()) {