From 9ac194ca6e005d825bbebc46a7d318d534fa7fae Mon Sep 17 00:00:00 2001 From: Ian Gilman Date: Tue, 29 Aug 2017 10:05:47 -0700 Subject: [PATCH] Better constrain during pan for mobile --- src/viewer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/viewer.js b/src/viewer.js index 0921eca8..028b9624 100644 --- a/src/viewer.js +++ b/src/viewer.js @@ -2705,7 +2705,7 @@ function onCanvasDrag( event ) { } } - this.viewport.panBy( this.viewport.deltaPointsFromPixels( event.delta.negate() ), gestureSettings.flickEnabled && !this.constrainDuringPan); + this.viewport.panBy( this.viewport.deltaPointsFromPixels( event.delta.negate() ), gestureSettings.flickEnabled); } }