Commit e305c471 by doszhang

dos

parent 89156b9e
...@@ -164,6 +164,8 @@ function ruleScroll() { ...@@ -164,6 +164,8 @@ 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