Add fix for chaotic newsfeed display after network connection loss

This commit is contained in:
veeck
2021-10-17 16:01:01 +02:00
parent e9650285bd
commit 730f2eb0b8
2 changed files with 4 additions and 0 deletions

View File

@@ -295,6 +295,9 @@ Module.register("newsfeed", {
this.sendNotification("NEWS_FEED", { items: this.newsItems });
}
// #2638 Clear timer if it already exists
if (this.timer) clearInterval(this.timer);
this.timer = setInterval(() => {
this.activeItem++;
this.updateDom(this.config.animationSpeed);