mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
fix(core): reduce doubletap window from 300ms to 200ms (#1328)
This commit is contained in:
@@ -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: () => {} };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user