mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-28 13:43:45 +03: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:
parent
ddbcd901d1
commit
877641f626
Notes:
sideshowbarker
2024-07-18 02:13:10 +09:00
Author: https://github.com/tcl3 Commit: https://github.com/SerenityOS/serenity/commit/877641f626 Pull-request: https://github.com/SerenityOS/serenity/pull/23173
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user