OptionalallowAllows plugin to continue working even when there's a mousedown event.
OptionalbottomAlternatively, set bottom distance (leave unset for no top scroll)
OptionaldistanceDistance from all sides in screen pixels
OptionalleftAlternatively, set left distance (leave unset for no top scroll)
OptionallinearIf using radius, use linear movement (+/- 1, +/- 1) instead of angled movement.
(Math.cos(angle from center), Math.sin(angle from center))
OptionalnoDon't use decelerate plugin even if it's installed
OptionalradiusDistance from center of screen in screen pixels
OptionalreverseReverse direction of scroll
OptionalrightAlternatively, set right distance (leave unset for no top scroll)
OptionalspeedControls how fast the viewport scrolls. This is not pixels per frame.
Each update moves the viewport's center by speed * speed * 0.06 world pixels, so scrolling grows with the
square of speed: 4 → about 1, 8 (default) → about 3.8, 16 → about 15.4 world pixels per update.
The amount is per update (not per millisecond), so it also depends on frame rate.
OptionaltopAlternatively, set top distance (leave unset for no top scroll)
Options for MouseEdges.
Deprecated
use IEdgeScrollOptions with
viewport.edgeScroll()instead