mirror of
https://github.com/RGBCube/serenity
synced 2025-10-28 13:52:34 +00:00
Since our hit testing mechanism gives you the Paintable under the mouse cursor, we can't just give up if that paintable doesn't have a corresponding DOM node. That meant that generated content like pseudo- elements didn't generate mouse events at all. Fix this by making a dom_node_for_event_dispatch() helper function that finds a suitable DOM node when given a paintable. This first cut is very naive, and there's probably more we should do, but we have to start somewhere. :^) |
||
|---|---|---|
| .. | ||
| EditEventHandler.cpp | ||
| EditEventHandler.h | ||
| EventHandler.cpp | ||
| EventHandler.h | ||
| Page.cpp | ||
| Page.h | ||