Skip to content

fix: support touch :hover on opacity:0 views on iOS#9872

Open
MatiPl01 wants to merge 2 commits into
mainfrom
@matipl01/ios-opacity-zero-hover
Open

fix: support touch :hover on opacity:0 views on iOS#9872
MatiPl01 wants to merge 2 commits into
mainfrom
@matipl01/ios-opacity-zero-hover

Conversation

@MatiPl01

@MatiPl01 MatiPl01 commented Jul 3, 2026

Copy link
Copy Markdown
Member

Description

The issue

On iOS, UIKit's hit-testing ignores views with alpha < 0.01, so an opacity: 0 view could never receive touch :hover, unlike web and Android, where it stays hit-testable.

The fix

The :hover coordinator now briefly lifts each near-zero registered view above that threshold for the single hit-test and restores it before the next compositing pass, so opacity: 0 views become hoverable with no visual change.

@MatiPl01 MatiPl01 self-assigned this Jul 3, 2026
@MatiPl01 MatiPl01 changed the title fix: support touch :hover on opacity:0 views on iOS fix: support touch :hover on opacity:0 views on iOS Jul 3, 2026
@MatiPl01 MatiPl01 requested a review from tomekzaw July 3, 2026 16:38
@MatiPl01 MatiPl01 force-pushed the @matipl01/ios-opacity-zero-hover branch from 43e1273 to 76d5394 Compare July 3, 2026 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant