Skip to content

onPress not triggered on mobile if center of the pointer not in button #7800

Closed
@george-roussos

Description

@george-roussos

Provide a general summary of the issue here

onPress not triggered on mobile, if center of the pointer not in button

🤔 Expected Behavior?

Button action should be triggered

😯 Current Behavior

Nothing happens

💁 Possible Solution

No response

🔦 Context

There was a bug reported where when on mobile, if the center of pointer was not in the button when clicking, the onPress action was not triggered:

#5290

And there was a PR: #7427

This appears to still be a problem on mobile

🖥️ Steps to Reproduce

Screen.Recording.2025-02-20.at.17.15.02.mov

Version

"react-aria-components" @ "1.6.0"

What browsers are you seeing the problem on?

Chrome

If other, please specify.

No response

What operating system are you using?

Mac OS

🧢 Your Company/Team

No response

🕷 Tracking Issue

No response

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