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

event pass through #667

Merged
merged 1 commit into from
Nov 5, 2024
Merged

event pass through #667

merged 1 commit into from
Nov 5, 2024

Conversation

jrmoulton
Copy link
Collaborator

This makes it so that you can configure events to be allowed to be passed to overlapping siblings. This is necessary for the widget gallery that creates highlight overlays over items.

This also fixes #665

@dzhou121
Copy link
Contributor

dzhou121 commented Nov 5, 2024

Do we want to do it via something similar to pointer-events: none;?

@jrmoulton
Copy link
Collaborator Author

What about an enum: Block, Passthrough, None?

@jrmoulton
Copy link
Collaborator Author

I also wasn't prefectly sure on the naming. pointer-events:none is what it is on the web so it might just be good to use that since it will be common/discoverable as the name

@dzhou121
Copy link
Contributor

dzhou121 commented Nov 5, 2024

Yeah following with the web's name would be fine since we already have done lots of that.

@jrmoulton
Copy link
Collaborator Author

Hmm. I'll skip on the enum for now. just the two states covers all current use cases so I'll just do that

@jrmoulton jrmoulton merged commit 7a8da0f into lapce:main Nov 5, 2024
7 checks passed
@jrmoulton jrmoulton deleted the event-passthrough branch November 5, 2024 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

panic opening inspector when using tiny skia
2 participants