mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-03 14:09:42 +02:00
The touchmove handler accumulated pixelAccum/velocity and could scrollLines on every move — including micro-drift below the 8px tap threshold. A jittery tap (<8px) stayed classified as a tap (didScroll=false, so tap-to-position fired) yet still left a non-zero velocity, which touchend turned into a momentum fling. Result: one tap both positioned the cursor and scrolled. Gate the scroll/velocity accumulation behind didScroll so sub-threshold movement is inert, matching the handler's stated tap-vs-scroll intent. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>