Skip to content

useIdle: State stays idle when horizontally scrolling #7574

@kevduc

Description

@kevduc

Dependencies check up

  • I have verified that I use latest version of all @mantine/* packages

What version of @mantine/* packages do you have in package.json?

7.17.1

What package has an issue?

@mantine/hooks

What framework do you use?

Next.js

In which browsers you can reproduce the issue?

Firefox

Describe the bug

When using the useIdle example on mantine.dev, once the state is idle, if I horizontally scroll (I'm using the track pad on my mac), the state doesn't change to "not idle". It looks like it's using the defaults so it includes the scroll events, and I'd expect that horizontal scroll to be detected.

My user agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:136.0) Gecko/20100101 Firefox/136.0

Screen.Recording.2025-03-11.at.22.51.22.mov

If possible, include a link to a codesandbox with a minimal reproduction

https://mantine.dev/

Possible fix

No response

Self-service

  • I would be willing to implement a fix for this issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedContributions from community are welcome

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions