Fixed: Scrolling and Hotkey improvements

Co-Authored-By: Mark McDowall <markus101@users.noreply.github.com>
This commit is contained in:
Qstick
2020-03-11 22:23:07 -04:00
parent 55758a2772
commit f37fb47058
7 changed files with 113 additions and 27 deletions

View File

@@ -23,6 +23,8 @@ class Scroller extends Component {
if (this.props.scrollTop != null) {
this._scroller.scrollTop = scrollTop;
}
this._scroller.focus({ preventScroll: true });
}
//
@@ -58,6 +60,7 @@ class Scroller extends Component {
styles[scrollDirection],
autoScroll && styles.autoScroll
)}
tabIndex={-1}
{...otherProps}
>
{children}