Skip to content

Commit 9525dbb

Browse files
authored
fix: only call onDoubleClick for the dblclick event and not for the detected doubleTab in onTouchPanningStart (#484)
1 parent ea15dfe commit 9525dbb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/core/instance.core.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -376,9 +376,7 @@ export class ZoomPanPinch {
376376

377377
const isDoubleTap = this.lastTouch && +new Date() - this.lastTouch < 200;
378378

379-
if (isDoubleTap && event.touches.length === 1) {
380-
this.onDoubleClick(event);
381-
} else {
379+
if (!isDoubleTap) {
382380
this.lastTouch = +new Date();
383381

384382
handleCancelAnimation(this);

0 commit comments

Comments
 (0)