mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
LibWeb: Fire "mousedown" and "mousemove" events in the DOM :^)
This commit is contained in:
parent
f39e5352f0
commit
e265058768
Notes:
sideshowbarker
2024-07-19 08:15:27 +09:00
Author: https://github.com/awesomekling
Commit: e265058768
3 changed files with 28 additions and 6 deletions
|
@ -184,6 +184,7 @@ void HtmlView::mousemove_event(GUI::MouseEvent& event)
|
|||
#endif
|
||||
is_hovering_link = true;
|
||||
}
|
||||
const_cast<Node*>(node)->dispatch_event("mousemove");
|
||||
}
|
||||
if (m_in_mouse_selection) {
|
||||
layout_root()->selection().set_end({ result.layout_node, result.index_in_node });
|
||||
|
@ -234,6 +235,7 @@ void HtmlView::mousedown_event(GUI::MouseEvent& event)
|
|||
m_in_mouse_selection = true;
|
||||
}
|
||||
}
|
||||
const_cast<Node*>(node)->dispatch_event("mousedown");
|
||||
}
|
||||
}
|
||||
if (hovered_node_changed)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue