mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
workspaceThumbnails: Update target scale when fully unexpanded
We currently only update the scale when fully expanded. In order to fix the initial expand transition, also update the scale when fully unexpanded. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3331>
This commit is contained in:
parent
2694a64ebb
commit
6fa6dd6abb
1 changed files with 1 additions and 1 deletions
|
|
@ -1266,7 +1266,7 @@ export const ThumbnailsBox = GObject.registerClass({
|
|||
|
||||
// Compute the scale we'll need once everything is updated,
|
||||
// unless we are currently transitioning
|
||||
if (this._expandFraction === 1) {
|
||||
if (this._expandFraction === 0 || this._expandFraction === 1) {
|
||||
const [, natWidth] = this.get_preferred_width(-1);
|
||||
const [, natHeight] = this.get_preferred_height(natWidth);
|
||||
const totalSpacing = (nWorkspaces - 1) * spacing;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue