mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-22 15:31:05 +01:00
Revert "[gpu] Sync cursor position on 2→1 touch transition"
This reverts commit d44b0958fa.
This commit is contained in:
1 parent
d44b0958fa
commit
4ebb454061
1 file changed
-5
@@ -389,11 +389,6 @@ tap: animate · dbl-tap+drag: zoom · long-press: reset</span>
|
||||
/* 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,
|
||||
|
||||
Reference in new issue
Block a user