mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +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;
|
let lastX, lastY;
|
||||||
gameObject.on('dragstart', (pointer, dragX, dragY) => {
|
gameObject.on('dragstart', (pointer, dragX, dragY) => {
|
||||||
lastX = dragX;
|
lastX = gameObject.input.dragStartX;
|
||||||
lastY = dragY;
|
lastY = gameObject.input.dragStartY;
|
||||||
})
|
})
|
||||||
|
|
||||||
gameObject.on('drag', (pointer, dragX, dragY) => {
|
gameObject.on('drag', (pointer, dragX, dragY) => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user