From 76f5a0ed33b848973c19e3522234558e36ade038 Mon Sep 17 00:00:00 2001 From: Gehan Gonsalkorale Date: Tue, 11 Jul 2017 10:58:52 +0100 Subject: [PATCH] Fix for #1232 - constrainDuringPan causes jitter on mobile --- src/viewer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/viewer.js b/src/viewer.js index 936e4eaf..99e3fa30 100644 --- a/src/viewer.js +++ b/src/viewer.js @@ -2699,7 +2699,7 @@ function onCanvasDrag( event ) { } } - this.viewport.panBy( this.viewport.deltaPointsFromPixels( event.delta.negate() ), gestureSettings.flickEnabled ); + this.viewport.panBy( this.viewport.deltaPointsFromPixels( event.delta.negate() ), gestureSettings.flickEnabled && !this.constrainDuringPan); } }