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

@ -3232,10 +3232,11 @@ function onCanvasDragEnd( event ) {
*/
this.raiseEvent('canvas-drag-end', canvasDragEndEventArgs);
gestureSettings = this.gestureSettingsByDeviceType( event.pointerType );
gestureSettings = this.gestureSettingsByDeviceType( event.pointerType );
if (!canvasDragEndEventArgs.preventDefaultAction && this.viewport) {
if ( !THIS[ this.hash ].draggingToZoom &&
gestureSettings.dragToPan &&
gestureSettings.flickEnabled &&
event.speed >= gestureSettings.flickMinSpeed) {
var amplitudeX = 0;