From 583d2cb4e468d26bfdb2b8f8fb201370379c6ec4 Mon Sep 17 00:00:00 2001 From: Magdalen Berns Date: Wed, 5 Feb 2014 18:21:42 +0000 Subject: [PATCH] Magnifier: take x,y from center of focused widget bug https://bugzilla.gnome.org/show_bug.cgi?id=720951 --- 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 5c79acbd4..2a6ac3868 100644 --- a/js/ui/magnifier.js +++ b/js/ui/magnifier.js @@ -736,7 +736,8 @@ const ZoomRegion = new Lang.Class({ if (!component || event.detail1 != 1) return; let extents = component.get_extents(Atspi.CoordType.SCREEN); - [this._xFocus, this._yFocus] = [extents.x, extents.y] + [this._xFocus, this._yFocus] = [extents.x + (extents.width / 2), + extents.y + (extents.height / 2)]; this._centerFromFocusPosition(); },