rm unnecessary console.log

This commit is contained in:
Pan
2018-09-06 13:18:34 +08:00
parent fa54b927f7
commit c58bce603b
3 changed files with 0 additions and 3 deletions

View File

@@ -169,7 +169,6 @@ export function scrollTo(element, to, duration) {
const difference = to - element.scrollTop
const perTick = (difference / duration) * 10
setTimeout(() => {
console.log(new Date())
element.scrollTop = element.scrollTop + perTick
if (element.scrollTop === to) return
scrollTo(element, to, duration - 10)