Fix for #1232 - constrainDuringPan causes jitter on mobile

This commit is contained in:
Gehan Gonsalkorale 2017-07-11 10:58:52 +01:00
parent 4e060d6ca2
commit 76f5a0ed33

View File

@ -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);
} }
} }