Problem
BlobPhysics exposes updateMousePosition(x, y), but TinyVectors.svelte does not wire pointer or mouse movement into it. Scroll physics currently attracts blobs toward the default physics-center position rather than the actual pointer.
Scope
- Add pointer/mouse handling at the component boundary while preserving
pointer-events: none visual behavior where appropriate.
- Convert viewport/client coordinates into the physics coordinate space.
- Use requestAnimationFrame-friendly throttling and consider coalesced pointer events where supported.
- Include touch/pointer fallback behavior for mobile.
Validation
- Unit tests for coordinate mapping.
- Browser-level smoke test or demo verification that pointer movement changes blob trajectories without breaking scroll/passive listeners.
Problem
BlobPhysicsexposesupdateMousePosition(x, y), butTinyVectors.sveltedoes not wire pointer or mouse movement into it. Scroll physics currently attracts blobs toward the default physics-center position rather than the actual pointer.Scope
pointer-events: nonevisual behavior where appropriate.Validation