A platform for community discussion. Free, open, simple.
UX: avoid suppressing non-click events when dragging the grippie (#33415)
Renato Atilio818511cc28ba
diff --git a/app/assets/javascripts/discourse/app/modifiers/grippie-drag-resize.js b/app/assets/javascripts/discourse/app/modifiers/grippie-drag-resize.jsindex fa3b778a847..5ab2fe1e690 100644--- a/app/assets/javascripts/discourse/app/modifiers/grippie-drag-resize.js+++ b/app/assets/javascripts/discourse/app/modifiers/grippie-drag-resize.js@@ -45,7 +45,7 @@ export default class GrippieDragResize extends Modifier {// Only allow left-click dragging// c.f. https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button#value- if (event.button !== 0) {+ if (event.type === "mousedown" && event.button !== 0) {return;}