Pause clips on moving off a slide in the viewer.
This commit is contained in:
@@ -37,7 +37,10 @@ export class FrigateCardCarousel extends LitElement {
|
||||
|
||||
if (!this._carousel) {
|
||||
this.updateComplete.then(() => {
|
||||
this._initCarousel();
|
||||
// Re-check for the carousel to prevent a double init.
|
||||
if (!this._carousel) {
|
||||
this._initCarousel();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user