Class: Decelerate

Decelerate

Plugin to decelerate viewport velocity smoothly after panning ends.

new Decelerate ()

This is called by Viewport.decelerate.

Classes

Decelerate

Methods

activate (options)

Manually activate deceleration, starting from the (x, y) velocity components passed in the options.

Name Type Description
options object
Name Type Description
x number optional

Specify x-component of initial velocity.

y number optional

Specify y-component of initial velocity.

moved ()

Listener to viewport's "moved" event.