1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:17:34 +00:00

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

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