1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 03:07:43 +00:00

LibWeb: Dispatch dblclick UI Events on double click

This commit is contained in:
Karol Kosek 2022-06-14 19:39:33 +02:00 committed by Sam Atkins
parent 03cda8a013
commit 237a5bedd2
2 changed files with 3 additions and 1 deletions

View file

@ -542,7 +542,8 @@ bool EventHandler::handle_doubleclick(Gfx::IntPoint const& position, unsigned bu
if (!node || !layout_node)
return false;
// FIXME: Dispatch 'dblclick' events.
auto offset = compute_mouse_event_offset(position, *layout_node);
node->dispatch_event(UIEvents::MouseEvent::create_from_platform_event(UIEvents::EventNames::dblclick, offset.x(), offset.y(), position.x(), position.y(), button));
// FIXME: Select word