-
Notifications
You must be signed in to change notification settings - Fork 138
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
dont send pointer events to overlap siblings #648
Conversation
18bb178
to
42863ba
Compare
Do you know if web allow it? |
yeah web by default will block pointer events from overlapping sibling elements. css does have a pointer-events property that will stop the element from receiving any pointer events at all |
I could make this configurable on an application/window level so that applications that don't want to check this during layout can avoid it |
https://claude.site/artifacts/33e3ae52-b07c-4a85-93ec-3e5b8d687165 example generated with claude |
Got you now. Maybe we could make the implementation easier. In the default view event handler, if the view doesn't have any children or no children has handled the pointer event, it stops pointer event propagation in this view. |
42863ba
to
0a44220
Compare
Ah yeah that could work. I think the logic would be if the pointer event was contained in a child, and it didn't handle it, then don't send it to any of the next children. That would be a lot simpler |
0a44220
to
fe18df3
Compare
fe18df3
to
8e5f6a1
Compare
Hahah yeah that's a lot simpler |
was accidentally testing an old version. it's working well |
No description provided.