From 4ebb45406192bfbef97d17d8891e4369d8ff56a7 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 30 Mar 2026 18:18:15 -0600 Subject: [PATCH] =?UTF-8?q?Revert=20"[gpu]=20Sync=20cursor=20position=20on?= =?UTF-8?q?=202=E2=86=921=20touch=20transition"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit d44b0958fa241574369f7a551d7a132065646510. --- util/gpu/web/shell.html | 5 ----- 1 file changed, 5 deletions(-) diff --git a/util/gpu/web/shell.html b/util/gpu/web/shell.html index c9f9e756c..1e26fbfaa 100644 --- a/util/gpu/web/shell.html +++ b/util/gpu/web/shell.html @@ -389,11 +389,6 @@ tap: animate · dbl-tap+drag: zoom · long-press: reset /* 2→1: GLFW didn't see the pinch, so synthesize mousedown * for the remaining finger to enable panning. */ if (e.touches.length === 1) { - /* Sync GLFW cursor position first to prevent jump */ - canvas.dispatchEvent(new MouseEvent('mousemove', { - clientX: e.touches[0].clientX, - clientY: e.touches[0].clientY - })); canvas.dispatchEvent(new MouseEvent('mousedown', { button: 0, clientX: e.touches[0].clientX,