From e6a83bf0e1aba6577544736f5fdec4b5c8508842 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Tue, 5 Mar 2019 12:37:19 +0100 Subject: [PATCH] Fixed scrolling issue that caused scroll to be locked to the bottom of a long dashboard, fixes #15712 --- .../src/components/CustomScrollbar/CustomScrollbar.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/grafana-ui/src/components/CustomScrollbar/CustomScrollbar.tsx b/packages/grafana-ui/src/components/CustomScrollbar/CustomScrollbar.tsx index 61fc584c7ca..1bc1fd42792 100644 --- a/packages/grafana-ui/src/components/CustomScrollbar/CustomScrollbar.tsx +++ b/packages/grafana-ui/src/components/CustomScrollbar/CustomScrollbar.tsx @@ -42,11 +42,7 @@ export class CustomScrollbar extends Component { const ref = this.ref.current; if (ref && !isNil(this.props.scrollTop)) { - if (this.props.scrollTop > 10000) { - ref.scrollToBottom(); - } else { - ref.scrollTop(this.props.scrollTop); - } + ref.scrollTop(this.props.scrollTop); } }