about summary refs log tree commit diff
path: root/app/javascript/mastodon/features/community_timeline
diff options
context:
space:
mode:
authorunarist <m.unarist@gmail.com>2017-06-05 22:20:46 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-06-05 15:20:46 +0200
commitc26cea262b7673b0b239dd1da6754e7788aa08d8 (patch)
tree5aeaca51ded65d0ce3c2c9a6f12e028fccae214b /app/javascript/mastodon/features/community_timeline
parent1f1d6bf2a07219c9dfd04db5b98e31a0543a7427 (diff)
Prevent pinned columns from scroll to top on URL changing (#3586)
Diffstat (limited to 'app/javascript/mastodon/features/community_timeline')
-rw-r--r--app/javascript/mastodon/features/community_timeline/index.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/javascript/mastodon/features/community_timeline/index.js b/app/javascript/mastodon/features/community_timeline/index.js
index 6d2581141..1dd8a08ab 100644
--- a/app/javascript/mastodon/features/community_timeline/index.js
+++ b/app/javascript/mastodon/features/community_timeline/index.js
@@ -124,6 +124,7 @@ class CommunityTimeline extends React.PureComponent {
 
         <StatusListContainer
           {...this.props}
+          trackScroll={!pinned}
           scrollKey={`community_timeline-${columnId}`}
           type='community'
           emptyMessage={<FormattedMessage id='empty_column.community' defaultMessage='The local timeline is empty. Write something publicly to get the ball rolling!' />}