Skip to content

isScrollingDown in progress event listenerΒ #4

@Salitehkat

Description

@Salitehkat

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions