From 13507155f4db72dd5476701c8455cf713a50d407 Mon Sep 17 00:00:00 2001 From: snewcomer Date: Fri, 17 May 2019 08:13:08 -0700 Subject: [PATCH] Fix didScroll --- addon/mixins/in-viewport.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addon/mixins/in-viewport.js b/addon/mixins/in-viewport.js index f3d2f927..ac860af4 100644 --- a/addon/mixins/in-viewport.js +++ b/addon/mixins/in-viewport.js @@ -262,7 +262,7 @@ export default Mixin.create({ const scrollDirection = checkScrollDirection(lastPositionForEl, newPosition, sensitivity); const directionChanged = scrollDirection !== lastDirectionForEl; - if (scrollDirection && directionChanged && get(this, 'viewportEntered')) { + if (scrollDirection && directionChanged && get(this, 'viewportDidScroll')) { this.trigger('didScroll', scrollDirection); lastDirection[elementId] = scrollDirection; }