Merge pull request #2464 from jonasengelmann/fix/touch-gesture-dragToPan

Fix dragToPan when flickEnabled is activated
This commit is contained in:
Ian Gilman 2024-02-01 09:38:28 -08:00 committed by GitHub
commit 2e0868023a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3236,6 +3236,7 @@ function onCanvasDragEnd( event ) {
if (!canvasDragEndEventArgs.preventDefaultAction && this.viewport) {
if ( !THIS[ this.hash ].draggingToZoom &&
gestureSettings.dragToPan &&
gestureSettings.flickEnabled &&
event.speed >= gestureSettings.flickMinSpeed) {
var amplitudeX = 0;