From f2936b1c68a8ef165515364ce57772260ce0bf8c Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 14 Oct 2020 01:37:06 +0100 Subject: [PATCH] log scroll to bottom add some debug - rename vars nfc Signed-off-by: Ian Jackson --- templates/script.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/script.ts b/templates/script.ts index ed79894c..5b83cb8d 100644 --- a/templates/script.ts +++ b/templates/script.ts @@ -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); -- 2.30.2