Skip to content

Wire pointer and mouse interaction into TinyVectors physics #26

@Jesssullivan

Description

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions