From 877641f626db3fff3486da547199eeb89bcbabde Mon Sep 17 00:00:00 2001 From: Tim Ledbetter Date: Mon, 12 Feb 2024 18:34:06 +0000 Subject: [PATCH] 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. --- Userland/Libraries/LibWeb/Page/EventHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/Page/EventHandler.cpp b/Userland/Libraries/LibWeb/Page/EventHandler.cpp index 2dd1de250c..55f8895c1f 100644 --- a/Userland/Libraries/LibWeb/Page/EventHandler.cpp +++ b/Userland/Libraries/LibWeb/Page/EventHandler.cpp @@ -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