Skip to content
This repository was archived by the owner on Feb 24, 2023. It is now read-only.
This repository was archived by the owner on Feb 24, 2023. It is now read-only.

Lighthouse optimization : Does not use passive listeners to improve scrolling performance #227

Open
@juliender

Description

@juliender

Describe the bug
In lighthouse, there is a warning concerning event listeners :

Does not use passive listeners to improve scrolling performance
Consider marking your touch and wheel event listeners as passive to improve your page's scroll performance.

Code
Lines 202-207
this.$refs.track.addEventListener('touchstart', this.handleMouseDown)

The warning disappears by adding {passive : true}

Ie for line 202, the code becomes this.$refs.track.addEventListener('touchstart', this.handleMouseDown, {passive : true})

Regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions