-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Good morning and thank you very much for this plugin.
I was wondering if its possible to detect isScrollingDown boolean from inside the 'scroll-scene-progress' eventListener.
scenesContainer.addEventListener('scroll-scene-progress', ({ detail }) => { const { progress } = detail; const percent=(progress * 100).toFixed(1) const index = scenes.indexOf(detail.element); const isScrollingDown = detail.isScrollingDown; // its undefined }
Or in contrary, (which is much more suitable for my needs) is it possible to access the progress value in the'scroll-scene-enter' eventListener?
scenesContainer.addEventListener('scroll-scene-enter', ({ detail }) => { const index = scenes.indexOf(detail.element); const indice=index + 1 const isScrollingDown = detail.isScrollingDown; const { progress } = detail; const percent=(progress * 100).toFixed(1) console.log(percent) // its undefined }
Once again thank you very much,
Sali