egui/crates/eframe/src/web
Aiden 43261a5396
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.
2025-02-18 18:01:07 +01:00
..
app_runner.rs Web: Fix incorrect scale when moving to screen with new DPI (#5631) 2025-01-23 12:11:29 +01:00
backend.rs Only repaint on cursor movements of area, or if dragging outside (#4730) 2024-06-28 17:40:48 +02:00
events.rs Add pointer events and focus handling for apps run in a Shadow DOM (#5627) 2025-02-18 18:01:07 +01:00
input.rs Check if the mouse / touch event is above the canvas via element_from_point (#4775) 2024-07-05 08:18:53 +02:00
mod.rs Add pointer events and focus handling for apps run in a Shadow DOM (#5627) 2025-02-18 18:01:07 +01:00
panic_handler.rs Upgrade to wgpu 24 (#5610) 2025-01-16 17:00:29 +01:00
screen_reader.rs Remove dependency on `tts` (#3651) 2023-11-28 10:46:18 +01:00
storage.rs Update to Rust 1.76 (#4411) 2024-04-25 15:51:01 +02:00
text_agent.rs Add pointer events and focus handling for apps run in a Shadow DOM (#5627) 2025-02-18 18:01:07 +01:00
web_logger.rs Persist `Area` positions again (#4749) 2024-07-01 17:33:03 +02:00
web_painter.rs Add screenshot support for eframe web (#5438) 2024-12-12 19:17:42 +01:00
web_painter_glow.rs Add screenshot support for eframe web (#5438) 2024-12-12 19:17:42 +01:00
web_painter_wgpu.rs Extend `WgpuSetup`, `egui_kittest` now prefers software rasterizers for testing (#5506) 2025-01-08 14:24:58 +01:00
web_runner.rs Add pointer events and focus handling for apps run in a Shadow DOM (#5627) 2025-02-18 18:01:07 +01:00