Fix text input displayed position when inside a custom object whose layer is moved (#7713)

This commit is contained in:
D8H
2025-07-14 17:47:44 +02:00
committed by GitHub
parent c338e16e4f
commit 2b7dadf2a8

View File

@@ -382,11 +382,9 @@ namespace gdjs {
): FloatPoint {
const position = result || [0, 0];
this._customObject.applyObjectTransformation(sceneX, sceneY, position);
return this._parent.convertInverseCoords(
position[0],
position[1],
position
);
return this._parent
.getLayer(this._customObject.getLayer())
.convertInverseCoords(position[0], position[1], 0, position);
}
/**