LibWeb: Display an IBeam cursor by default when mousing over a text node

We now check the type of the layout node at the current mouse position
when determining which cursor to display during a mouse move event.
This commit is contained in:
Tim Ledbetter 2024-02-12 18:34:06 +00:00 committed by Andreas Kling
parent ddbcd901d1
commit 877641f626
Notes: sideshowbarker 2024-07-18 02:13:10 +09:00

View File

@ -493,7 +493,7 @@ bool EventHandler::handle_mousemove(CSSPixelPoint position, CSSPixelPoint screen
if (hovered_link_element)
is_hovering_link = true;
if (node->is_text()) {
if (paintable->layout_node().is_text_node()) {
if (cursor == CSS::Cursor::Auto)
hovered_node_cursor = Gfx::StandardCursor::IBeam;
else