Commit 2b31ca84 by doszhang

dos

parent e305c471
...@@ -164,7 +164,6 @@ function ruleScroll() { ...@@ -164,7 +164,6 @@ function ruleScroll() {
let wrapHeight = 155; //rem let wrapHeight = 155; //rem
let scrollHeight = wrapHeight - blockHeight; //rem let scrollHeight = wrapHeight - blockHeight; //rem
let step = (39 * fontSize) / (scrollHeight * fontSize); let step = (39 * fontSize) / (scrollHeight * fontSize);
console.log(step);
let scrollTop = $('.rule-block').scrollTop(); let scrollTop = $('.rule-block').scrollTop();
$('.scroll-bar').css('top', scrollTop * step + 'px'); $('.scroll-bar').css('top', scrollTop * step + 'px');
......
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