From 9525dbbae52f79aec452ad71e597cc830f15426b Mon Sep 17 00:00:00 2001 From: RobinSCU <50205066+RobinSCU@users.noreply.github.com> Date: Mon, 1 Jul 2024 11:59:11 +0200 Subject: [PATCH] fix: only call onDoubleClick for the dblclick event and not for the detected doubleTab in onTouchPanningStart (#484) --- src/core/instance.core.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/core/instance.core.ts b/src/core/instance.core.ts index 022cd2c..087f4e0 100644 --- a/src/core/instance.core.ts +++ b/src/core/instance.core.ts @@ -376,9 +376,7 @@ export class ZoomPanPinch { const isDoubleTap = this.lastTouch && +new Date() - this.lastTouch < 200; - if (isDoubleTap && event.touches.length === 1) { - this.onDoubleClick(event); - } else { + if (!isDoubleTap) { this.lastTouch = +new Date(); handleCancelAnimation(this);