A platform for community discussion. Free, open, simple.
DEV: Disable 'passive' handlers for pan-events mixin (#15118)
David Taylorbca5c58c909d
diff --git a/app/assets/javascripts/discourse/app/mixins/pan-events.js b/app/assets/javascripts/discourse/app/mixins/pan-events.jsindex 63db26161a5..35d03d19031 100644--- a/app/assets/javascripts/discourse/app/mixins/pan-events.js+++ b/app/assets/javascripts/discourse/app/mixins/pan-events.js@@ -34,7 +34,7 @@ export default Mixin.create({this.touchCancel = (e) => this._panMove({ type: "pointercancel" }, e);const opts = {- passive: true,+ passive: false,};element.addEventListener("touchstart", this.touchStart, opts);element.addEventListener("touchmove", this.touchMove, opts);