diff --git a/app/assets/javascripts/discourse/app/components/composer-body.js b/app/assets/javascripts/discourse/app/components/composer-body.js index 4301331e15f..eecc6ff68bc 100644 --- a/app/assets/javascripts/discourse/app/components/composer-body.js +++ b/app/assets/javascripts/discourse/app/components/composer-body.js @@ -112,6 +112,7 @@ export default Component.extend(KeyEnterEscape, { const performDrag = (event) => { $composer.trigger("div-resizing"); + this.appEvents.trigger("composer:div-resizing"); $composer.addClass("clear-transitions"); const currentMousePos = mouseYPos(event); let size = origComposerSize + (lastMousePos - currentMousePos); @@ -142,6 +143,7 @@ export default Component.extend(KeyEnterEscape, { lastMousePos = mouseYPos(event); $document.on(DRAG_EVENTS, throttledPerformDrag); $document.on(END_EVENTS, endDrag); + this.appEvents.trigger("composer:resize-started"); }); if (iOSWithVisualViewport()) {