update

fun update(next: Point, view: Point): Point

Updates the panning position and returns it.

Parameters

next

the destination point

view

the position of the view