fix(core): reduce doubletap window from 300ms to 200ms (#1328)

This commit is contained in:
rahim
2026-04-14 00:05:56 -07:00
committed by GitHub
parent de5d612107
commit 8bce342890
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
import type { GestureMatchResult, GestureRecognizer } from './gesture';
const DOUBLETAP_WINDOW = 300;
const DOUBLETAP_WINDOW = 200;
/**
* Recognizes tap vs doubletap from quick pointer-up events.
@@ -2,7 +2,7 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
import { createDoubleTapGesture, createTapGesture } from '../create-tap-gesture';
const DOUBLETAP_WINDOW = 300;
const DOUBLETAP_WINDOW = 200;
function setup() {
const container = document.createElement('div');
@@ -3,7 +3,7 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
import type { GestureMatchResult, GestureType } from '../gesture';
import { TapRecognizer } from '../tap';
const DOUBLETAP_WINDOW = 300;
const DOUBLETAP_WINDOW = 200;
const NOOP_RECOGNIZER = { handleUp: () => {}, reset: () => {} };