Remove confusing carousel methods.

This commit is contained in:
Dermot Duffy
2023-01-24 19:36:54 -08:00
parent 1762b5530f
commit eefe665f25
5 changed files with 61 additions and 102 deletions
-22
View File
@@ -97,28 +97,6 @@ export class FrigateCardCarousel extends LitElement {
}
}
/**
* Scroll to a particular slide.
* @param index Slide number.
*/
public carouselScrollTo(index: number): void {
this.selected = index;
}
/**
* Scroll to the previous slide.
*/
public carouselScrollPrevious(): void {
this.selected = Math.max(0, this.selected - 1);
}
/**
* Scroll to the next slide.
*/
public carouselScrollNext(): void {
this.selected = this.selected + 1;
}
/**
* Get the selected slide.
* @returns A CarouselSelect object (index & element).