提交 7d671b28 编写于 作者: G Guillaume Chau

fix: scroll to inspected leading enabled

上级 04c85575
......@@ -22,7 +22,9 @@ export default function ({
requestAnimationFrame(() => {
if (this.inspectedIndex) this.scrollIntoInspected(this.inspectedIndex)
})
}, 100),
}, 100, {
leading: true
}),
scrollIntoInspected: debounce(function (index) {
index += indexOffset
......@@ -38,7 +40,9 @@ export default function ({
scroller.scrollTop = top + height - parentHeight
}
})
}, 30)
}, 30, {
leading: true
})
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册