about summary refs log tree commit diff
path: root/app/javascript/mastodon/components/column.js
diff options
context:
space:
mode:
authorAkihiko Odaki <akihiko.odaki.4i@stu.hosei.ac.jp>2017-08-05 01:57:46 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-08-04 18:57:46 +0200
commit9d1f8b9d6af1d384a4dd68bc6353a2fde5735b33 (patch)
treea6271cec3f53aa94a44dbd1d13e696bd587ba70d /app/javascript/mastodon/components/column.js
parent400616813e6012780b97c5a297797ee50fd2072a (diff)
Scroll columns area to right when children property is changed (#4517)
The feature to pin column could hide the rightmost column, which is
specified with children property of ColumnsArea.

The user is likely to see the column when the property changed, so scroll
the area in such cases.
Diffstat (limited to 'app/javascript/mastodon/components/column.js')
-rw-r--r--app/javascript/mastodon/components/column.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/components/column.js b/app/javascript/mastodon/components/column.js
index 93f1d6260..05a7c1436 100644
--- a/app/javascript/mastodon/components/column.js
+++ b/app/javascript/mastodon/components/column.js
@@ -1,7 +1,7 @@
 import React from 'react';
 import PropTypes from 'prop-types';
 import detectPassiveEvents from 'detect-passive-events';
-import scrollTop from '../scroll';
+import { scrollTop } from '../scroll';
 
 export default class Column extends React.PureComponent {