Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On Web, implement WindowEvent::Occluded #2940

Merged
merged 4 commits into from
Jul 10, 2023

Conversation

daxpedda
Copy link
Member

@daxpedda daxpedda commented Jul 9, 2023

Uses IntersectionObserver and pageshow/pagehide to implement WindowEvent::Occluded for Web.

Unfortunately the IntersectionObserver isn't perfect, as it doesn't account for border or padding, nothing to be done about this until the spec improves.

Fixes #2928.

@daxpedda daxpedda marked this pull request as ready for review July 9, 2023 19:03
@daxpedda daxpedda force-pushed the web-occluded branch 2 times, most recently from 4fa9323 to 1e108f6 Compare July 9, 2023 20:29
@daxpedda daxpedda merged commit 5e0e1e9 into rust-windowing:master Jul 10, 2023
kchibisov pushed a commit to kchibisov/winit that referenced this pull request Aug 14, 2023
kchibisov pushed a commit that referenced this pull request Aug 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

Implement Occluded for Web
1 participant