fixed issue with new button welcome window

This commit is contained in:
2025-11-23 02:55:48 -05:00
parent 009b285baa
commit d1e0b14561
4 changed files with 7 additions and 5 deletions

View File

@@ -770,8 +770,7 @@ namespace anm2ed::imgui
if (mouseWheel != 0 || isZoomIn || isZoomOut)
{
auto previousZoom = zoom;
zoom_set(zoom, pan, mouseWheel != 0 ? vec2(mousePos) : vec2(),
(mouseWheel > 0 || isZoomIn) ? zoomStep : -zoomStep);
zoom_set(zoom, pan, vec2(mousePos), (mouseWheel > 0 || isZoomIn) ? zoomStep : -zoomStep);
if (zoom != previousZoom) hasPendingZoomPanAdjust = true;
}
}