Skip to content
This repository was archived by the owner on Aug 9, 2023. It is now read-only.

After a few seconds, couldn't scrolling with nextjsΒ #88

@mattun

Description

@mattun

I used asscroll with nextjs 12.3.0
When loaded, can move, but after a few seconds, it couldn't scrolling

asscroll.mov
const asscrollRef = useRef();
const containerRef = useRef();

 useEffect(() => {
        const ASScroll = require("@ashthornton/asscroll");
        const asscroll = new ASScroll({
            containerElement:asscrollRef.current
        });
        asscroll.enable()

        asscroll.on('scroll', scrollPos => {
            console.log(scrollPos)
        })
}, []);

please check it

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