Skip to content

Commit

Permalink
fix: only call onDoubleClick for the dblclick event and not for the d…
Browse files Browse the repository at this point in the history
…etected doubleTab in onTouchPanningStart (#484)
  • Loading branch information
RobinSCU authored Jul 1, 2024
1 parent ea15dfe commit 9525dbb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/core/instance.core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9525dbb

Please sign in to comment.