mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-25 22:23:42 +08:00
[ts][phaser] Fix physics2 example drag start
This commit is contained in:
parent
e1fe3b6a9c
commit
94b8bf6f9f
@ -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) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user