mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 14:24:53 +08:00
Fix physicsTranslate y opposite direction while dragging.
This commit is contained in:
parent
3dd4e91ff5
commit
f9d73920d2
@ -1781,7 +1781,7 @@ class SpineWebComponentOverlay extends HTMLElement implements OverlayAttributes,
|
||||
const skeleton = widget.skeleton!;
|
||||
widget.dragX += this.screenToWorldLength(dragX);
|
||||
widget.dragY -= this.screenToWorldLength(dragY);
|
||||
skeleton.physicsTranslate(dragX, dragY);
|
||||
skeleton.physicsTranslate(dragX, -dragY);
|
||||
ev?.preventDefault();
|
||||
ev?.stopPropagation();
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user