rtime.site
中文

Open source / Browser component

viewport-input

Trackpad-aware pointer, wheel, and touch input for browser 3D viewports, with an optional OrbitControls adapter.

Browser inputThree.jsMIT

01 / What it does

What it does

01

Trackpad intent

Normalizes wheel input and separates pan, pinch zoom, and modifier-assisted orbit behavior.
02

Pointer lifecycle

Tracks mouse and touch navigation state while preventing accidental picks after a drag.
03

Host-owned integration

Keeps rendering and scene policy in the host, with an optional injected OrbitControls adapter.