Optional
What to do when the accumulated position hits viewBounds. Default: no clamping.
viewBounds
'stop'
'bounce'
'spring'
SPRING_DAMPING
Starting position for internal boundary tracking. Required when viewBounds is set.
Bounds for boundary clamping. Requires boundary to take effect.
boundary
What to do when the accumulated position hits
viewBounds. Default: no clamping.'stop': clamp at boundary, kill velocity component.'bounce': linear reflection — flip velocity sign, magnitude preserved.'spring': damped reflection — flip velocity sign and shrink magnitude bySPRING_DAMPINGper bounce so the motion settles naturally.