workspacesView: Refactor thumb zooming out code
https://bugzilla.gnome.org/show_bug.cgi?id=582650
This commit is contained in:
parent
6851c5443a
commit
efc128e681
@ -868,15 +868,10 @@ const WorkspacesDisplay = new Lang.Class({
|
|||||||
let clipX = rtl ? x + controlsVisible : x;
|
let clipX = rtl ? x + controlsVisible : x;
|
||||||
let clipY = y + (fullHeight - clipHeight) / 2;
|
let clipY = y + (fullHeight - clipHeight) / 2;
|
||||||
|
|
||||||
if (this._zoomOut) {
|
let widthAdjust = this._zoomOut ? controlsNatural : controlsVisible;
|
||||||
width -= controlsNatural;
|
width -= widthAdjust;
|
||||||
if (rtl)
|
if (rtl)
|
||||||
x += controlsNatural;
|
x += widthAdjust;
|
||||||
} else {
|
|
||||||
width -= controlsVisible;
|
|
||||||
if (rtl)
|
|
||||||
x += controlsVisible;
|
|
||||||
}
|
|
||||||
|
|
||||||
height = (fullHeight / fullWidth) * width;
|
height = (fullHeight / fullWidth) * width;
|
||||||
let difference = fullHeight - height;
|
let difference = fullHeight - height;
|
||||||
|
Loading…
Reference in New Issue
Block a user