rm unnecessary console.log
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user