Skip to content
Snippets Groups Projects
Commit 82009981 authored by Ondřej Hruška's avatar Ondřej Hruška Committed by Eugen Rochko
Browse files

add scrollTop to ui/components/column (#4563)

parent 2ebe4ff5
No related branches found
No related tags found
No related merge requests found
......@@ -25,6 +25,17 @@ export default class Column extends React.PureComponent {
this._interruptScrollAnimation = scrollTop(scrollable);
}
scrollTop () {
const scrollable = this.node.querySelector('.scrollable');
if (!scrollable) {
return;
}
this._interruptScrollAnimation = scrollTop(scrollable);
}
handleScroll = debounce(() => {
if (typeof this._interruptScrollAnimation !== 'undefined') {
this._interruptScrollAnimation();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment