Compare commits

...

1 Commits

Author SHA1 Message Date
xuxiaoyan 31eabe1247 fix(ruler): fixed scrolling position when ruler is not initialized
#748
2021-07-26 15:57:23 +08:00
1 changed files with 5 additions and 1 deletions

View File

@ -164,7 +164,11 @@ export default {
const drawFn = throttle(this.$_draw, 10)
const scroller = new Scroller(
left => {
this.isInitialed && drawFn(left)
if (this.isInitialed) {
drawFn(left)
} else {
this.$_draw(left)
}
},
{
scrollingX: true,