Merge pull request #1245 from gehan/master

Fix for #1232 - constrainDuringPan causes jitter on mobile
This commit is contained in:
Ian Gilman 2017-07-12 15:35:22 -07:00 committed by GitHub
commit d8b0aae823

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