Skip to content

Non-passive event listeners #199

Open
@YevheniiKisel

Description

@YevheniiKisel

Hello, Spline community!
I have a question regarding a non-passive event warning in the console, a.k.a "[Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event." which is also mentioned in the Lighthouse post-test recommendations.
I have a problem exactly with scrolling, which feels "jumpy + low FPS" :). After a quick examination of the source code of the @splinetool/runtime there is indeed a lack of { passive: true } in the event listener declaration. ?

    "@splinetool/react-spline": "^4.0.0",
    "@splinetool/runtime": "^1.8.9",
    "next": "^14.2.3",

Here is a reference article: https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md

I would really be thankful for your fix or any help.

Thank you!

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