mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:47:34 +00:00
LibWeb: Expose the MouseEvent::{clientX, clientY} attributes
These provide the cursor coordinate within the viewport at which the event occurred (as opposed to the page relative coordinates exposed via offsetX, offsetY).
This commit is contained in:
parent
815934a95d
commit
ad8e2f481d
5 changed files with 16 additions and 8 deletions
|
@ -660,7 +660,7 @@ NonnullRefPtr<Event> Document::create_event(const String& interface)
|
|||
} else if (interface_lowercase == "messageevent") {
|
||||
event = Event::create(""); // FIXME: Create MessageEvent
|
||||
} else if (interface_lowercase.is_one_of("mouseevent", "mouseevents")) {
|
||||
event = UIEvents::MouseEvent::create("", 0, 0);
|
||||
event = UIEvents::MouseEvent::create("", 0, 0, 0, 0);
|
||||
} else if (interface_lowercase == "storageevent") {
|
||||
event = Event::create(""); // FIXME: Create StorageEvent
|
||||
} else if (interface_lowercase == "svgevents") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue