Automatically create a hitbox for focusable elements (#9485)

Closes #9462

This fixes the focus story in the storybook.

Release Notes:

- N/A
This commit is contained in:
Antonio Scandurra
2024-03-18 09:58:31 +01:00
committed by GitHub
parent de14e339be
commit 52a9bc3e1b
+1
View File
@@ -1307,6 +1307,7 @@ impl Interactivity {
|| self.has_hover_styles()
|| self.has_mouse_listeners()
|| self.scroll_offset.is_some()
|| self.tracked_focus_handle.is_some()
{
Some(cx.insert_hitbox(bounds, self.occlude_mouse))
} else {