diff --git a/app/assets/javascripts/discourse/app/components/bookmark-list.js b/app/assets/javascripts/discourse/app/components/bookmark-list.js index 03f2b863629..594bf4ff110 100644 --- a/app/assets/javascripts/discourse/app/components/bookmark-list.js +++ b/app/assets/javascripts/discourse/app/components/bookmark-list.js @@ -31,7 +31,7 @@ export default Component.extend(Scrolling, { if (scrollTo >= 0) { schedule("afterRender", () => { if (this.element && !this.isDestroying && !this.isDestroyed) { - next(() => window.scrollTo(0, scrollTo + 1)); + next(() => window.scrollTo(0, scrollTo)); } }); } diff --git a/app/assets/javascripts/discourse/app/components/discovery-topics-list.js b/app/assets/javascripts/discourse/app/components/discovery-topics-list.js index 2b304caa1d9..4821ade3736 100644 --- a/app/assets/javascripts/discourse/app/components/discovery-topics-list.js +++ b/app/assets/javascripts/discourse/app/components/discovery-topics-list.js @@ -17,7 +17,7 @@ export default Component.extend(UrlRefresh, LoadMore, { if (scrollTo >= 0) { schedule("afterRender", () => { if (this.element && !this.isDestroying && !this.isDestroyed) { - next(() => window.scrollTo(0, scrollTo + 1)); + next(() => window.scrollTo(0, scrollTo)); } }); } else { diff --git a/app/assets/javascripts/discourse/app/components/topic-list.js b/app/assets/javascripts/discourse/app/components/topic-list.js index 360425fae55..e06f9c18e41 100644 --- a/app/assets/javascripts/discourse/app/components/topic-list.js +++ b/app/assets/javascripts/discourse/app/components/topic-list.js @@ -78,7 +78,7 @@ export default Component.extend(LoadMore, { if (scrollTo >= 0) { schedule("afterRender", () => { if (this.element && !this.isDestroying && !this.isDestroyed) { - next(() => window.scrollTo(0, scrollTo + 1)); + next(() => window.scrollTo(0, scrollTo)); } }); } diff --git a/app/assets/javascripts/discourse/app/components/user-stream.js b/app/assets/javascripts/discourse/app/components/user-stream.js index 6262ba75fe6..53b636831d5 100644 --- a/app/assets/javascripts/discourse/app/components/user-stream.js +++ b/app/assets/javascripts/discourse/app/components/user-stream.js @@ -77,7 +77,7 @@ export default Component.extend(LoadMore, { if (scrollTo >= 0) { schedule("afterRender", () => { if (this.element && !this.isDestroying && !this.isDestroyed) { - next(() => window.scrollTo(0, scrollTo + 1)); + next(() => window.scrollTo(0, scrollTo)); } }); }