[ts][phaser] Fix physics2 example drag start

This commit is contained in:
Davide Tantillo 2024-04-17 11:46:28 +02:00
parent e1fe3b6a9c
commit 94b8bf6f9f
No known key found for this signature in database
GPG Key ID: 473ABA42CC0FDDC6

View File

@ -35,8 +35,8 @@
let lastX, lastY;
gameObject.on('dragstart', (pointer, dragX, dragY) => {
lastX = dragX;
lastY = dragY;
lastX = gameObject.input.dragStartX;
lastY = gameObject.input.dragStartY;
})
gameObject.on('drag', (pointer, dragX, dragY) => {