فهرست منبع

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;
     }
   }