Skip to content

Passive scroll listener #157

Open
@nachogarcia

Description

@nachogarcia

Using this library causes the following performance issue, reported in Google Lighthouse:

Does not use passive listeners to improve scrolling performance

I guess this would be simply fixed by using { passive: true } in

directive.scrollEventTarget.addEventListener('scroll', directive.scrollListener);

I don't think we would need to pass an option for this since the use for an infinite scroll is not to prevent scrolling.

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