Magnifier: take x,y from center of focused widget
bug https://bugzilla.gnome.org/show_bug.cgi?id=720951
This commit is contained in:
parent
aa70dcfc8f
commit
583d2cb4e4
@ -736,7 +736,8 @@ const ZoomRegion = new Lang.Class({
|
|||||||
if (!component || event.detail1 != 1)
|
if (!component || event.detail1 != 1)
|
||||||
return;
|
return;
|
||||||
let extents = component.get_extents(Atspi.CoordType.SCREEN);
|
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();
|
this._centerFromFocusPosition();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user