mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-05 06:44:56 +08:00
Fix 1 pixel misalignment in non clip mode.
This commit is contained in:
parent
3d77f1c26e
commit
3b4ab02d92
@ -1025,7 +1025,7 @@ class SpineWebComponentOverlay extends HTMLElement {
|
||||
} else {
|
||||
// get the desired point into the the div (center by default) in world coordinate
|
||||
const divX = divBounds.x + divBounds.width * (xAxis + .5);
|
||||
const divY = divBounds.y + divBounds.height * (-yAxis + .5);
|
||||
const divY = divBounds.y + divBounds.height * (-yAxis + .5) - 1;
|
||||
this.screenToWorld(tempVector, divX, divY);
|
||||
divOriginX = tempVector.x;
|
||||
divOriginY = tempVector.y;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user