Skip to content

Mousewheel: Add passive listeners for mousewheel #6452

@Davi-T

Description

@Davi-T

Check that this is really a bug

  • I confirm

Reproduction link

https://swiperjs.com/demos/270-mousewheel-control/core

Bug description

Chrome shows passive events violation when mouse wheel is enabled and notice it's not there in the source (but looks like it's added to other events)

Can we add in pretty please?

Thanks so much!

Expected Behavior

No violation warning

Actual Behavior

CHROME > [Violation] Added non-passive event listener to a scroll-blocking 'wheel' event. Consider marking event handler as 'passive' to make the page more responsive

Swiper version

9.1.0

Platform/Target and Browser Versions

Chrome 110.0.5481.100

Validations

  • Follow our Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
  • Make sure this is a Swiper issue and not a framework-specific issue

Would you like to open a PR for this bug?

  • I'm willing to open a PR

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