Skip to content

Commit

Permalink
Tweak scaling for fullscreen animation
Browse files Browse the repository at this point in the history
  • Loading branch information
amarullz committed Oct 16, 2023
1 parent 43a9c0d commit 876457a
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -2377,17 +2377,20 @@ class Manager {
activeWin?.get_compositor_private()
.set_pivot_point(0.5, 1);
activeWin.get_compositor_private().scale_y =
1.0 + (progress * 0.05);
1.0 + (progress * 0.025);
}
else if (ui >= 5) {
// un-fullsccreen / restore
activeWin?.get_compositor_private()
.set_pivot_point(0.5, 1);
activeWin.get_compositor_private().scale_y =
1.0 - (progress * 0.05);
if (ui == 6) {
activeWin.get_compositor_private().scale_x =
1.0 - (progress * 0.05);
activeWin.get_compositor_private().scale_y =
activeWin.get_compositor_private().scale_x =
1.0 - (progress * 0.04);
}
else {
activeWin.get_compositor_private().scale_y =
1.0 - (progress * 0.025);
}
}
else if (ui <= 3) {
Expand Down

0 comments on commit 876457a

Please sign in to comment.