Skip to content

Commit

Permalink
fix(carousel): Ensure correct autoplay display and animation
Browse files Browse the repository at this point in the history
  • Loading branch information
macandcheese committed Jan 18, 2025
1 parent 6baca3e commit 041a86a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ export class Carousel extends LitElement implements InteractiveComponent, Loadab
if (notSuspended) {
if (time <= 0.01) {
time = 1;
this.direction = "forward";
this.nextItem(false);
} else {
time = time - 0.01;
Expand Down Expand Up @@ -587,7 +588,7 @@ export class Carousel extends LitElement implements InteractiveComponent, Loadab
<calcite-progress
class={CSS.autoplayProgress}
label={this.messages.carouselItemProgress}
value={this.slideDurationRemaining}
value={this.slideDurationRemaining * 100}
/>
)}
</button>
Expand Down

0 comments on commit 041a86a

Please sign in to comment.