mirror of
https://github.com/emilk/egui.git
synced 2026-08-29 04:40:03 -04:00
Add pointer events and focus handling for apps run in a Shadow DOM (#5627)
* [x] I have followed the instructions in the PR template This PR handles pointer events and focus which did following changes: - `element_from_point` and focus is now acquired from root node object by using `get_root_node` from document or a shadow root. - `TextAgent` is appended individually in each shadow root. These changes handles pointer events and focus well in a web app that are running in a shadow dom, or else the hover pointer actions and keyboard input events are not triggered in a shadow dom. Helpful for building embeddable/multi-view web-apps.
This commit is contained in:
@@ -253,6 +253,7 @@ web-sys = { workspace = true, features = [
|
||||
"ResizeObserverEntry",
|
||||
"ResizeObserverOptions",
|
||||
"ResizeObserverSize",
|
||||
"ShadowRoot",
|
||||
"Storage",
|
||||
"Touch",
|
||||
"TouchEvent",
|
||||
|
||||
Reference in New Issue
Block a user