[gnome-shell] magnifier: Update zoom region right after enabling the magnifier
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] magnifier: Update zoom region right after enabling the magnifier
- Date: Sun, 13 Mar 2022 00:15:41 +0000 (UTC)
commit 7bf8f40c84e7fb697f39b145252a7467cbb2ab73
Author: Jonas Dreßler <verdre v0yd nl>
Date: Tue Mar 8 12:55:00 2022 +0100
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: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2234>
js/ui/magnifier.js | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/js/ui/magnifier.js b/js/ui/magnifier.js
index 0585e8812e..8ff062ba11 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();
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]