瀏覽代碼

Merge pull request #15792 from grafana/fix-15712-scroll-issue

Fixed scrolling issue that caused scroll to be locked to bottom
Torkel Ödegaard 6 年之前
父節點
當前提交
7f283bdfb9
共有 1 個文件被更改,包括 1 次插入5 次删除
  1. 1 5
      packages/grafana-ui/src/components/CustomScrollbar/CustomScrollbar.tsx

+ 1 - 5
packages/grafana-ui/src/components/CustomScrollbar/CustomScrollbar.tsx

@@ -42,11 +42,7 @@ export class CustomScrollbar extends Component<Props> {
     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);
     }
   }