scrollama icon indicating copy to clipboard operation
scrollama copied to clipboard

direction undefined when using css snap feature

Open Jonohas opened this issue 11 months ago • 0 comments

<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

Jonohas avatar Mar 04 '24 13:03 Jonohas