Browse Source

Fix missing variable

Steven Silvester 8 years ago
parent
commit
47346e003d
1 changed files with 1 additions and 1 deletions
  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 node = this.node;
     let ar = node.getBoundingClientRect();
     let ar = node.getBoundingClientRect();
     let delta = position - ar.top - ar.height / 2;
     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;
       node.scrollTop += delta;
     }
     }
   }
   }