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

@ -23,6 +23,7 @@ _This release is scheduled to be released on 2022-01-01._
- Fixed wrong file `kr.json` to `ko.json`. Use language code 'ko' instead of 'kr' for Korean language.
- Fixed `feels_like` data from openweathermaps current weather being ignored (#2678).
- Fixed chaotic newsfeed display after network connection loss (#2638).
## [2.17.1] - 2021-10-01

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);