diff --git a/js/src/forum/components/PostStream.js b/js/src/forum/components/PostStream.js index 97a228e44..87cefea29 100644 --- a/js/src/forum/components/PostStream.js +++ b/js/src/forum/components/PostStream.js @@ -23,9 +23,6 @@ export default class PostStream extends Component { this.loadPageTimeouts = {}; this.pagesLoading = 0; - this.state.on('unpaused', () => { - this.scrollListener.update(); - }); this.state.on('scrollToLast', () => { this.scrollToLast(); }); diff --git a/js/src/forum/states/PostStreamState.js b/js/src/forum/states/PostStreamState.js index a7c0da4d6..858037e83 100644 --- a/js/src/forum/states/PostStreamState.js +++ b/js/src/forum/states/PostStreamState.js @@ -75,7 +75,7 @@ class PostStreamState { this.trigger('scrollToNumber', number, noAnimation); }) .then(() => { - this.unpause(); + this.paused = false; }); } @@ -100,7 +100,7 @@ class PostStreamState { this.trigger('scrollToIndex', index, noAnimation, backwards); }) .then(() => { - this.unpause(); + this.paused = false; }); } @@ -273,7 +273,7 @@ class PostStreamState { const anchorIndex = backwards ? this.visibleEnd - 1 : this.visibleStart; anchorScroll(`.PostStream-item[data-index="${anchorIndex}"]`, () => m.redraw(true)); - this.unpause(); + this.paused = false; }; redraw(); @@ -368,7 +368,6 @@ class PostStreamState { */ unpause() { this.paused = false; - this.trigger('unpaused'); } }