A platform for community discussion. Free, open, simple.
Fix: delay panning until we can determine direction
Jeff Wongf3b17b92b786
diff --git a/app/assets/javascripts/discourse/mixins/pan-events.js.es6 b/app/assets/javascripts/discourse/mixins/pan-events.js.es6index 055533d437e..b4247d861df 100644--- a/app/assets/javascripts/discourse/mixins/pan-events.js.es6+++ b/app/assets/javascripts/discourse/mixins/pan-events.js.es6@@ -100,6 +100,9 @@ export default Ember.Mixin.create({}const previousState = this.get("_panState");const newState = this._calculateNewPanState(previousState, e);+ if (previousState.start && newState.distance < 5) {+ return;+ }this.set("_panState", newState);if (previousState.start && "panStart" in this) {this.panStart(newState);