Something went wrong. Try again.
A WebGPU retro game engine for TypeScript, inspired by RetroBlit. Build pixel-perfect 2D games with a clean, fantasy-console-style API.
Something went wrong. Try again.
fix(input): release pointer captures on detach and record final mouse position on pointerup master
In detach(), iterate pointerIdToSlot and call releasePointerCapture() for each active capture before removing event listeners. Without this, any in-flight touch or pen contacts leave dangling browser-side capture state when the input system is torn down. In handlePointerUp(), call updateSlotPosition() before setMouseButton() for mouse events, matching the existing touch/pen path. The terminal position from the pointerup event was previously discarded, leaving the slot with a stale coordinate on the release frame. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: Vaclav Vancura <commit@vancura.dev>
Author Vaclav Vancura Co-author Claude Sonnet 4.6 Date (May 5, 2026, 3:10 PM UTC) Commit d9ef377c d9ef377c2ab9e9ae188324d5881be773b36412d1 Parent 6e3d772c 6e3d772cc493f951ead0be2361f4961b4083b4b6