This is called by Viewport.edgeScroll.
ProtectedbottomProtecteddirectionCurrent scroll direction for each axis, between -1 and 1 (screen direction the view moves toward)
ProtecteddirectionProtectedleftScroll region boundaries in screen pixels (null = no scrolling on that 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".
ProtectedrightProtectedscrollingWhether the viewport is currently scrolling (used for start/end events)
ProtectedtopProtecteddecelerateCalled when plugin is removed
Handler for pointerdown PIXI event
ProtectedendStops scrolling without handing off to decelerate, and emits edge-scroll-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
ProtectedstopStop scrolling on both axes, handing the current velocity to the decelerate plugin
ProtectedstopProtectedstopHandler for pointerup PIXI event
Called on each tick
ProtectedvelocityVelocity of the viewport's position in screen pixels per millisecond (the unit decelerate uses)
Protectedviewport
Scroll the viewport when the mouse is near one of the screen edges (or outside a radius from the center).
Replaces MouseEdges:
speedis in screen pixels per second, so scrolling is the same at every zoom level and frame rate.edge-scroll-start(Viewport) emitted when edge scrolling starts edge-scroll-end(Viewport) emitted when edge scrolling ends