Fix the center point for keyboard zoom
This commit is contained in:
parent
20e2b64390
commit
13918a579f
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user