浏览代码

Fix missing variable

Steven Silvester 8 年之前
父节点
当前提交
47346e003d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/notebook/src/widget.ts

+ 1 - 1
packages/notebook/src/widget.ts

@@ -842,7 +842,7 @@ class Notebook extends StaticNotebook {
     let node = this.node;
     let ar = node.getBoundingClientRect();
     let delta = position - ar.top - ar.height / 2;
-    if (Math.abs(delta) > totalHeight * threshold / 100) {
+    if (Math.abs(delta) > ar.height * threshold / 100) {
       node.scrollTop += delta;
     }
   }