Commit d449ed0c by doszhang

dos

parent 344b352d
......@@ -175,12 +175,13 @@ function ruleScroll() {
let scrollTop = $('.rule-block').scrollTop();
let top = (7.9 * fontSize) + scrollTop * step;
if (scrollTop < 0) {
scrollTop = 0;
} else if (scrollTop > (scrollHeight * fontSize)) {
scrollTop = scrollHeight * fontSize;
}
let top = (7.9 * fontSize) + scrollTop * step;
$('.scroll-bar').css('top', top + 'px');
}, 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