Skip to content

Commit

Permalink
fix(kit): Carousel fix scrolling with touchpad when itemsCount more…
Browse files Browse the repository at this point in the history
… than 1 (#7706)
  • Loading branch information
vladimirpotekhin committed Jun 11, 2024
1 parent 2046723 commit e9186ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/kit/components/carousel/carousel.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export class TuiCarouselComponent {

onScroll(delta: number): void {
if (!this.isMobile) {
this.updateIndex(this.index + delta);
delta > 0 ? this.next() : this.prev();
}
}

Expand Down

0 comments on commit e9186ca

Please sign in to comment.