From 13918a579f55e1c0ddf8adfd2b2a8e16afe27f4d Mon Sep 17 00:00:00 2001 From: "Eevee (Evelyn Woods)" Date: Mon, 22 Apr 2024 10:09:25 -0600 Subject: [PATCH] Fix the center point for keyboard zoom --- js/editor/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/editor/main.js b/js/editor/main.js index 89c9db9..5ece19b 100644 --- a/js/editor/main.js +++ b/js/editor/main.js @@ -1138,7 +1138,7 @@ export class Editor extends PrimaryView { if (this.zoom) { if (origin_x === null) { // Default to zooming around the center of the viewport - let bbox = this.viewport_el.getBoundingClientRect(); + let bbox = this.actual_viewport_el.getBoundingClientRect(); origin_x = bbox.left + bbox.width / 2; origin_y = bbox.top + bbox.height / 2; }