We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02c4735 commit 1f4c2b0Copy full SHA for 1f4c2b0
masonry_core/src/passes/event.rs
@@ -22,7 +22,9 @@ fn get_pointer_target(
22
) -> Option<WidgetId> {
23
// See the [pointer capture documentation](../doc/06_masonry_concepts.md#pointer-capture).
24
if let Some(capture_target) = root.global_state.pointer_capture_target {
25
- return Some(capture_target);
+ if root.widget_arena.has(capture_target) {
26
+ return Some(capture_target);
27
+ }
28
}
29
30
if let Some(pointer_pos) = pointer_pos {
0 commit comments