Skip to content

Commit

Permalink
LibWeb: Restore event characteristics of MouseEvents
Browse files Browse the repository at this point in the history
These were accidentally no longer set after
2c396b5
  • Loading branch information
circl-lastname committed Jul 16, 2024
1 parent 8a0ef17 commit 2b66e76
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Userland/Libraries/LibWeb/UIEvents/MouseEvent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ WebIDL::ExceptionOr<JS::NonnullGCPtr<MouseEvent>> MouseEvent::create_from_platfo
event_init.buttons = buttons;
auto event = MouseEvent::create(realm, event_name, event_init, page.x().to_double(), page.y().to_double(), offset.x().to_double(), offset.y().to_double());
event->set_is_trusted(true);
event->set_bubbles(true);
event->set_cancelable(true);
event->set_composed(true);
return event;
}

Expand Down

0 comments on commit 2b66e76

Please sign in to comment.