LogoRobo.js
Packages@robojs/sync

CursorOptions

Interface: CursorOptions

Options for useSyncCursor hook.

Properties

PropertyTypeDescription
autoTrack?booleanAutomatically track mouse movement (default: false). Set to true for convenience, or false for manual control via updatePosition.
hideOnLeave?booleanSet active=false when mouse leaves window (default: true)
inactiveTimeout?numberMilliseconds before removing inactive cursors (default: 3000)
normalize?booleanConvert coordinates to 0-1 viewport range (default: true)
throttle?numberMilliseconds between cursor updates (default: 16 for ~60fps)

On this page