mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibWeb: Bring MouseEvent a bit closer to spec
This commit is contained in:
parent
a2bc97a9c2
commit
1b94b4c593
Notes:
sideshowbarker
2024-07-17 14:14:25 +09:00
Author: https://github.com/Igoorx
Commit: 1b94b4c593
Pull-request: https://github.com/SerenityOS/serenity/pull/13589
6 changed files with 75 additions and 18 deletions
|
@ -395,7 +395,7 @@ bool HTMLElement::fire_a_synthetic_pointer_event(FlyString const& type, DOM::Ele
|
|||
// 1. Let event be the result of creating an event using PointerEvent.
|
||||
// 2. Initialize event's type attribute to e.
|
||||
// FIXME: Actually create a PointerEvent!
|
||||
auto event = UIEvents::MouseEvent::create(type, 0.0, 0.0, 0.0, 0.0);
|
||||
auto event = UIEvents::MouseEvent::create(type);
|
||||
|
||||
// 3. Initialize event's bubbles and cancelable attributes to true.
|
||||
event->set_bubbles(true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue