From 7bf8f40c84e7fb697f39b145252a7467cbb2ab73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Tue, 8 Mar 2022 12:55:00 +0100 Subject: [PATCH] magnifier: Update zoom region right after enabling the magnifier We want the zoom region to always be where the mouse cursor is, so make sure to update it initially, too. Part-of: --- js/ui/magnifier.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/ui/magnifier.js b/js/ui/magnifier.js index 0585e8812..8ff062ba1 100644 --- a/js/ui/magnifier.js +++ b/js/ui/magnifier.js @@ -215,6 +215,8 @@ var Magnifier = class Magnifier { if (!this._pointerWatch) { let interval = 1000 / 60; this._pointerWatch = PointerWatcher.getPointerWatcher().addWatch(interval, this.scrollToMousePos.bind(this)); + + this.scrollToMousePos(); } }