From 851a9090d7563febb62a46935583164ffbf533aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Pe=CC=81ault?= Date: Fri, 6 Mar 2020 18:38:44 +0100 Subject: [PATCH] Fix function call --- src/animations/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/animations/index.js b/src/animations/index.js index d690e20..4abecd1 100644 --- a/src/animations/index.js +++ b/src/animations/index.js @@ -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) }