mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:57:45 +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:
parent
ddbcd901d1
commit
877641f626
1 changed files with 1 additions and 1 deletions
|
@ -493,7 +493,7 @@ bool EventHandler::handle_mousemove(CSSPixelPoint position, CSSPixelPoint screen
|
||||||
if (hovered_link_element)
|
if (hovered_link_element)
|
||||||
is_hovering_link = true;
|
is_hovering_link = true;
|
||||||
|
|
||||||
if (node->is_text()) {
|
if (paintable->layout_node().is_text_node()) {
|
||||||
if (cursor == CSS::Cursor::Auto)
|
if (cursor == CSS::Cursor::Auto)
|
||||||
hovered_node_cursor = Gfx::StandardCursor::IBeam;
|
hovered_node_cursor = Gfx::StandardCursor::IBeam;
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue