Phaser API Documentation

  Version: 
<readonly> prevPosition: Phaser.Math.Vector2

Description:

The previous position of the Pointer in screen space.

The old x and y values are stored in here during the InputManager.transformPointer call.

Use the properties velocity, angle and distance to create your own gesture recognition.

Since: 3.11.0
Source: src/input/Pointer.js (Line 153)