Skip to content

mark touch event handlers as passive #58

@juberkb

Description

@juberkb

⚠️ Issue Summary:
In the browser console, the following performance warning is triggered on every page flip when using the component from the react-pageflip library:
"
[Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952
This warning indicates that react-pageflip is attaching touchstart or touchmove event listeners without the { passive: true } option, which can negatively impact scroll performance on touch devices (like phones and tablets). "

so do something

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