Skip to content

Using react-router-scroll with react-custom-scrollbars #42

Description

@adrienharnay

Hello,

I've implemented the code in the documentation to apply scroll behavior on my router, but I'm using react-custom-scrollbars (https://github.com/malte-wessel/react-custom-scrollbars), therefore nothing happens...

Is there a way I could call window.scrollbar.scrollToTop() (my way of scrolling to the top with my custom scrollbar) when useScroll normally scrolls?

Thanks in advance.

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