Fixed scale up amount calculations

This commit is contained in:
Yousef Khadadeh 2025-12-31 16:43:08 +03:00
parent 85cc0c2457
commit 976c71215b
5 changed files with 6 additions and 6 deletions

View file

@ -144,7 +144,7 @@ CanvasComponentContainer::TransformDrawData CanvasComponentContainer::calculate_
}
void CanvasComponentContainer::scale_up(const WorldScalar& scaleUpAmount) {
coords.inverseScale *= scaleUpAmount;
coords.scale_about(WorldVec{0, 0}, scaleUpAmount, true);
calculate_world_bounds();
}