diff options
author | 2018-08-24 17:27:09 +0300 | |
---|---|---|
committer | 2023-01-13 10:37:53 +0300 | |
commit | 00d5a8dc3983b1b5911c7279394ebdac564a798e (patch) | |
tree | 501edf4dda5cf1ddbaa8023d2487e5d52928d14d /vnext/src/components/Thread.js | |
parent | aa52bb339a6016e8ed7833b9abaa4e0abb7f2351 (diff) |
scroll fixes for mobile
Diffstat (limited to 'vnext/src/components/Thread.js')
-rw-r--r-- | vnext/src/components/Thread.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vnext/src/components/Thread.js b/vnext/src/components/Thread.js index 7f8e515a..b426581d 100644 --- a/vnext/src/components/Thread.js +++ b/vnext/src/components/Thread.js @@ -31,6 +31,8 @@ export default class Thread extends React.Component { this.loadReplies(); } loadReplies() { + document.body.scrollTop = 0; + document.documentElement.scrollTop = 0; this.setState({ replies: [], loading: true }); const { mid } = this.props.match.params; let params = { |