Commit 5b1b545c by doszhang

dos

parent 916429c4
...@@ -176,11 +176,11 @@ function ruleScroll() { ...@@ -176,11 +176,11 @@ function ruleScroll() {
let scrollTop = $('.rule-block').scrollTop(); let scrollTop = $('.rule-block').scrollTop();
let top = (7.9 * fontSize) + scrollTop * step; let top = (7.9 * fontSize) + scrollTop * step;
// if (top < (7.9 * fontSize)) { if (top < (7.9 * fontSize)) {
// top = 7.9 * fontSize; top = 7.9 * fontSize;
// } else if (top > (46.9 * fontSize)) { } else if (top > (46.9 * fontSize)) {
// top = 46 * fontSize; top = 46 * fontSize;
// } }
$('.scroll-bar').css('top', top + 'px'); $('.scroll-bar').css('top', top + 'px');
}, 5); }, 5);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment