chiark / gitweb /
log scroll to bottom add some debug - rename vars nfc
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 14 Oct 2020 00:37:06 +0000 (01:37 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 14 Oct 2020 00:37:06 +0000 (01:37 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
templates/script.ts

index ed79894c7e4f47ae0bac75f9da2b6c4e7bdeb020..5b83cb8d0b882b12c5cc26fe10cf0426bdaa473a 100644 (file)
@@ -790,10 +790,10 @@ function add_log_message(msg_html: string) {
     // rejected
       //   https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API
       (() => {
-       let le = lastent.getBoundingClientRect()!.bottom;
-       let ld = logdiv.getBoundingClientRect()!.bottom;
-       console.log("ADD_LOG_MESSAGE bboxes: le, bb", le, ld);
-       return le > ld;
+       let le_bot = lastent.getBoundingClientRect()!.bottom;
+       let ld_bot = logdiv.getBoundingClientRect()!.bottom;
+       console.log("ADD_LOG_MESSAGE bboxes: le, bb", le_bot, ld_bot);
+       return le_bot > ld_bot;
       })();
 
   console.log('ADD LOG MESSAGE ',in_scrollback, msg_html);