diff options
| -rw-r--r-- | gui/src/renderer/components/CustomScrollbars.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/src/renderer/components/CustomScrollbars.tsx b/gui/src/renderer/components/CustomScrollbars.tsx index 87c5b82dce..2b5119839c 100644 --- a/gui/src/renderer/components/CustomScrollbars.tsx +++ b/gui/src/renderer/components/CustomScrollbars.tsx @@ -72,10 +72,10 @@ export default class CustomScrollbars extends React.Component<IProps, IState> { this.updateScrollbarsHelper({ size: true }); }); - public scrollToTop() { + public scrollToTop(smooth = false) { const scrollable = this.scrollableRef.current; if (scrollable) { - scrollable.scrollTop = 0; + scrollable.scrollTo({ top: 0, behavior: smooth ? 'smooth' : 'auto' }); } } |
