Skip to main content

velocityY

velocityY : Number

The vertical velocity (in pixels per second).

Details

The vertical velocity (in pixels per second).

This is only affected by the event types that the Observer is watching. So, for example, type: "wheel,touch" would track the velocity based on wheel and touch events (not pointer or scroll). By default, touch and pointer events are only tracked while pressing/dragging but if you define an onMove (which is mapped to "pointermove"/"mousemove" events), it'll be tracked during any movement while hovering over the target.

Contents