From 0cb10535ba89c8fcd9a9d49444a9a9bea8d0f5e2 Mon Sep 17 00:00:00 2001 From: amy Date: Thu, 23 Feb 2023 15:20:17 +0000 Subject: swapped old scrollbars --- src/common.js | 22 ++++++++++++++++++++++ src/window-utils.js | 9 +++++++-- 2 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 src/common.js (limited to 'src') diff --git a/src/common.js b/src/common.js new file mode 100644 index 0000000..5606706 --- /dev/null +++ b/src/common.js @@ -0,0 +1,22 @@ +Object.prototype.clone = Array.prototype.clone = function() //https://stackoverflow.com/questions/12690107/clone-object-without-reference-javascript +{ + if (Object.prototype.toString.call(this) === '[object Array]') + { + var clone = []; + for (var i=0; i
" let thi_point = document.getElementById(uid + "-" + minor_uid + "-content-scrollbar-point") let thi_base = document.getElementById(uid + "-" + minor_uid + "-content-scrollbar") procs[uid].refresh = ()=>{ - console.log(root.clientHeight / (target.clientHeight / root.clientHeight) / root.clientHeight) + + //console.log(root.clientHeight / (target.clientHeight / root.clientHeight) / root.clientHeight) thi_point.style.display = "block" thi_base.style.display = "block" thi_point.style.height = root.clientHeight / (target.clientHeight / root.clientHeight) @@ -35,6 +36,10 @@ let util = { thi_point.style.display = "none" thi_base.style.display = "none" } + + if(thi_base.clientHeight { -- cgit v1.2.3