1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:37:43 +00:00

LibWeb: Fix hit-testing for button element

Change 'dom_node_for_event_dispatch' to locate the closest layout node
with a DOM node instead of only checking the direct ancestor.

This fixes hit-testing for buttons because they are wrapped into
multiple anonymous layout nodes (internally we use flex formatting for
them).
This commit is contained in:
Aliaksandr Kalenik 2024-02-12 14:58:10 +01:00 committed by Alexander Kalenik
parent 8e21bbf7bf
commit edab67d5e8
3 changed files with 28 additions and 2 deletions

View file

@ -0,0 +1 @@
Button Clicked!