Protected OptionalcurrentThe ID of the pointer currently panning the viewport.
ProtectedkeyFlags whether the keys required to drag are pressed currently.
Protected OptionallastLast pointer position while panning.
ProtectedmouseHolds whether the left, center, and right buttons are required to pan.
ProtectedmovedFlags when viewport is moving.
ReadonlyoptionsOptions used to initialize this plugin, cannot be modified later.
ReadonlyparentThe viewport to which this plugin is attached.
Flags whether this plugin has been "paused".
ProtectedreverseFactor to apply from IDecelerateOptions's reverse.
ProtectedunderflowUnderflow factor along x-axis
ProtectedunderflowUnderflow factor along y-axis
ProtectedxHolds whether dragging is enabled along the x-axis.
ProtectedyHolds whether dragging is enabled along the y-axis.
ProtectedcheckProtectedcheckCalled when plugin is removed
ProtectedglobalProtectedhandleHandles keypress events and set the keyIsPressed boolean accordingly
key codes that can be used to trigger drag event
Protectedmouseinitialize mousebuttons array
ProtectedparentProtectedparsePause the plugin
Called when the viewport is manually moved
Called when the viewport is resized
Un-pause the plugin
Called on each tick
time in milliseconds since last update
Protectedviewport
Plugin to enable panning/dragging of the viewport to move around.