Fix function call

This commit is contained in:
2020-03-06 18:38:44 +01:00
parent bb74a0e072
commit 851a9090d7

View File

@@ -33,7 +33,7 @@ export const animateIn = () => {
easing: 'easeOutQuart',
duration: animDuration
})
window.addEventListener('scroll', fn.debounce(event => {
window.addEventListener('scroll', debounce(event => {
translate.seek(translate.duration * (window.scrollY / 1000))
}), 50)
}