mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-21 23:11:04 +01:00
WebGL mobile currently commits a tap on touchstart, then the second tap in a double-tap zoom has to undo that animation toggle. This makes tap and double-tap drag compete and can start animation before gesture intent is clear. Track a pending single tap until touchend, suppress the synthetic click toggle on release, and only fire the animation toggle after the double-tap timeout expires. A second tap now cancels that pending toggle and claims double-tap zoom directly. Testing: - source /home/behdad/emsdk/emsdk_env.sh >/dev/null && EM_CACHE=/tmp/emscripten-cache ./util/gpu/web/build.sh - source /home/behdad/emsdk/emsdk_env.sh >/dev/null && EM_CACHE=/tmp/emscripten-cache ./util/gpu/web/build-webgpu.sh Assisted-by: OpenAI Codex