1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-05 23:10:41 +03:00

get scrolltop and scrollevent out of autohide/indicator scrollbar

This commit is contained in:
Bruno Windels
2019-02-13 14:49:14 +01:00
parent de8cd88418
commit 3ce2309ae2
2 changed files with 9 additions and 0 deletions

View File

@@ -59,6 +59,10 @@ export default class IndicatorScrollbar extends React.Component {
}
}
getScrollTop() {
return this._autoHideScrollbar.getScrollTop();
}
componentWillUnmount() {
if (this._scrollElement) {
this._scrollElement.removeEventListener("scroll", this.checkOverflow);