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

LibWeb: Bring MouseEvent a bit closer to spec

This commit is contained in:
Igor Pissolati 2022-04-09 12:44:42 -03:00 committed by Andreas Kling
parent a2bc97a9c2
commit 1b94b4c593
6 changed files with 75 additions and 18 deletions

View file

@ -980,7 +980,7 @@ NonnullRefPtr<Event> Document::create_event(String const& interface)
} else if (interface_lowercase == "messageevent") {
event = HTML::MessageEvent::create("");
} else if (interface_lowercase.is_one_of("mouseevent", "mouseevents")) {
event = UIEvents::MouseEvent::create("", 0, 0, 0, 0);
event = UIEvents::MouseEvent::create("");
} else if (interface_lowercase == "storageevent") {
event = Event::create(""); // FIXME: Create StorageEvent
} else if (interface_lowercase == "svgevents") {