Open RedskyThirty opened 4 years ago
Hello, I fixed a small issue in the method "moveBar".
var barHeight = Math.max(_this.scrollRatio * 100, 10); _this.bar.style.cssText = 'height:' + barHeight + '%; top:' + Math.min((_this.el.scrollTop / totalHeight ) * 100, (100 - barHeight)) + '%;right:' + right + 'px;';
Hello, I fixed a small issue in the method "moveBar".
var barHeight = Math.max(_this.scrollRatio * 100, 10); _this.bar.style.cssText = 'height:' + barHeight + '%; top:' + Math.min((_this.el.scrollTop / totalHeight ) * 100, (100 - barHeight)) + '%;right:' + right + 'px;';