Magnifier: take x,y from center of focused widget

bug https://bugzilla.gnome.org/show_bug.cgi?id=720951
This commit is contained in:
Magdalen Berns 2014-02-05 18:21:42 +00:00
parent aa70dcfc8f
commit 583d2cb4e4

View File

@ -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();
},