AnalogPanHelper

class AnalogPanHelper(current: Point)

Helps manage panning done through the mouse, therefore analog in the sense that the panning can go towards any direction.

Parameters

current

the current position of the mouse.

Constructors

Link copied to clipboard
fun AnalogPanHelper(current: Point)

Functions

Link copied to clipboard
fun close()

Closes the helper. This invalidates the AnalogPanHelper

Link copied to clipboard
fun update(next: Point, view: Point): Point

Updates the panning position and returns it.

Properties

Link copied to clipboard
var valid: Boolean = true

Returns whether this AnalogPanHelper is still valid. Invalidation happens when close is called, for example when the mouse goes out of bounds.