Fix zoom with touch breaking when canvas is scaled up
This commit is contained in:
parent
23347a5ee6
commit
32b84d0813
2 changed files with 15 additions and 8 deletions
|
|
@ -58,6 +58,7 @@ void DrawCamera::scale_up(World& w, const WorldScalar& scaleUpAmount) {
|
|||
startZoomVal *= scaleUpAmount;
|
||||
startZoomMousePos *= scaleUpAmount;
|
||||
startZoomCameraPos *= scaleUpAmount;
|
||||
touchInitialC.scale_about({0, 0}, scaleUpAmount, true);
|
||||
set_viewing_area(w.main.window.size.cast<float>());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue