Table of contents
class EdgeScrollManager {}

Constructor

Constructs a new instance of the EdgeScrollManager class

Parameters
NameDescription

editor

Editor

Properties

editor

editor: Editor

Methods

updateEdgeScrolling()

Update the camera position when the mouse is close to the edge of the screen. Run this on every tick when in a state where edge scrolling is enabled.

updateEdgeScrolling(elapsed: number): void
Parameters
NameDescription

elapsed

number
Returns
void

Edge2dEditor