mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-24 16:31:14 +01:00
The WebGL touch path only tracked the initial 3->2 reseed with skipNextPinchMove. Once a real pinch was underway, the later 2->1 transition stopped being treated as a gesture handoff and fell back into the browser/GLFW single-touch path. Track pinch-active state explicitly, swallow the pinch-ending touchend, and hand single-finger pan off from the remaining touch by syncing the cursor before synthesizing mousedown. This keeps the 3->2->1 sequence from jumping the view when the second finger lifts. 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