Skip to content

Commit

Permalink
Add back scroll reset
Browse files Browse the repository at this point in the history
  • Loading branch information
holdercp committed Jan 9, 2025
1 parent 8112c63 commit 58f2a52
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions client/blocks/reader-full-post/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,11 @@ export class FullPostView extends Component {
resetScroll = () => {
this.clearResetScrollTimeout();
this.resetScrollTimeout = setTimeout( () => {
this.scrollableContainer.scrollTo( {
top: 0,
left: 0,
behavior: 'instant',
} );
this.scrollTracker.resetMaxScrollDepth();
}, 0 ); // Defer until after the DOM update
};
Expand Down

0 comments on commit 58f2a52

Please sign in to comment.