Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

direction undefined when using css snap feature #149

Open
Jonohas opened this issue Mar 4, 2024 · 0 comments
Open

direction undefined when using css snap feature #149

Jonohas opened this issue Mar 4, 2024 · 0 comments

Comments

@Jonohas
Copy link

Jonohas commented Mar 4, 2024

<div
    class="snap-y snap-mandatory overflow-y-scroll h-screen w-full hide-scrollbar"
>
    <div class="snap-always snap-center h-screen bg-amber-200 flex justify-center items-center text-6xl">1</div>
    <div class="snap-always snap-center h-screen bg-green-200 flex justify-center items-center text-6xl">2</div>
</div>

in this case the direction for the "onStepEnter" and "onStepExit" callbacks are undefined.

complete react app to test here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant