Skip to content

RangeInput: Mouse wheel event listeners do not prevent window from scrolling #7129

@kid-icarus

Description

@kid-icarus

Expected Behavior

I expect the window not to scroll as I'm changing values for the RangeInput via the scroll wheel.

Actual Behavior

The window scrolls around in addition to the RangeInput wheel values changing.

URL, screen shot, or Codepen exhibiting the issue

https://v2.grommet.io/rangeinput

Screen.Recording.2024-02-12.at.7.39.15.PM.mov

For a more pronounced repro, try Safari on macOS 🙃

Screen.Recording.2024-02-12.at.8.21.05.PM.mov

Steps to Reproduce

  1. Mouse over the RangeInput
  2. Scroll
  3. Notice that the window scrolls as well

Your Environment

  • Grommet version: latest
  • Browser Name and version: Chrome - any
  • Operating System and version (desktop or mobile): Chrome desktop, macOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugissue that does not match design or documentation and requires code changes to address

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions