Skip to content

Commit

Permalink
Simplify animation duration expression into one-liner
Browse files Browse the repository at this point in the history
Co-authored-by: Marco Trevisan <[email protected]>
  • Loading branch information
sniirful and 3v1n0 committed Feb 29, 2024
1 parent 46b81ae commit e48a602
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dash.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,11 @@ class DockDashItemContainer extends Dash.DashItemContainer {
if (this.child == null)
return;

let time = animate ? DASH_ANIMATION_TIME : 0;
this.ease({
scale_x: 1,
scale_y: 1,
opacity: 255,
duration: time,
duration: animate ? DASH_ANIMATION_TIME : 0,
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
onComplete: () => {
// when the animation is ended, we simulate
Expand Down

0 comments on commit e48a602

Please sign in to comment.