Skip to content

Consider adding scroll event listener as passive #52

@SamEdwards-1

Description

@SamEdwards-1

Description

I've been doing a lot of performance profiling and the scroll does seem a bit smoother when using passive event listeners. Marking an event listener as passive just means that you are promising not to cancel the event, and as best I can tell this component never does so.

Does anyone know if there is a good reason not to do this that is eluding me? If not I'd be happy to contribute a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions