[gnome-shell/wip/carlosg/magnifier-improvements: 4/4] magnifier: Make magnification factor changes animatable
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/carlosg/magnifier-improvements: 4/4] magnifier: Make magnification factor changes animatable
- Date: Fri, 7 Feb 2020 16:53:10 +0000 (UTC)
commit 476f024c3a6df7d3f499bfa8d995463cc328090b
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Feb 6 14:21:14 2020 +0100
magnifier: Make magnification factor changes animatable
So we can seamlessly change between them through eg. keybindings.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/984
js/ui/magnifier.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/js/ui/magnifier.js b/js/ui/magnifier.js
index 2cb3984550..844a1506cd 100644
--- a/js/ui/magnifier.js
+++ b/js/ui/magnifier.js
@@ -875,7 +875,8 @@ var ZoomRegion = class ZoomRegion {
setMagFactor(xMagFactor, yMagFactor) {
this._changeROI({ xMagFactor,
yMagFactor,
- redoCursorTracking: this._followingCursor });
+ redoCursorTracking: this._followingCursor,
+ animate: true });
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]