Merge pull request #2691 from rejas/issue_2638

This commit is contained in:
Michael Teeuw
2021-10-17 17:07:12 +02:00
committed by GitHub
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);