This is called by Viewport.mouseEdges.
ProtectedbottomScroll region size on the bottom side.
Protected OptionalhorizontalProtectedleftScroll region size on the left side.
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".
Protected ReadonlyradiusRadius squared
Protected ReadonlyreverseFactor from reverse option.
ProtectedrightScroll region size on the right side.
ProtectedscrollingWhether the viewport is currently scrolling because of mouse-edges (used for start/end events)
ProtectedtopScroll region size on the top size.
Protected OptionalverticalCalled when plugin is removed
Handler for pointerdown PIXI event
ProtectedendStops scrolling and emits mouse-edge-end if it was scrolling
ProtectedglobalProtectedparentPause the plugin
Called when the viewport is manually moved
Called when the viewport is resized
Un-pause the plugin
Handler for pointerup PIXI event
Called on each tick
Protectedviewport
Scroll viewport when mouse hovers near one of the edges.
Deprecated
use EdgeScroll (
viewport.edgeScroll()) instead: itsspeedis in screen pixels per second, while this plugin'sspeedscrolls by speed * speed * 0.06 world pixels per frame. Kept unchanged for compatibility.mouse-edge-start(Viewport) emitted when mouse-edge starts mouse-edge-end(Viewport) emitted when mouse-edge ends