Skip to content

Commit 94b8bf6

Browse files
committed
[ts][phaser] Fix physics2 example drag start
1 parent e1fe3b6 commit 94b8bf6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spine-ts/spine-phaser/example/physics2.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ <h1>Physics example 2 - Drag physics</h1>
3535

3636
let lastX, lastY;
3737
gameObject.on('dragstart', (pointer, dragX, dragY) => {
38-
lastX = dragX;
39-
lastY = dragY;
38+
lastX = gameObject.input.dragStartX;
39+
lastY = gameObject.input.dragStartY;
4040
})
4141

4242
gameObject.on('drag', (pointer, dragX, dragY) => {

0 commit comments

Comments
 (0)