mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
auto merge of #4374 : thiagopnts/servo/dispatch-event, r=Ms2ger
servo/pull/4369 with the right commit.
This commit is contained in:
commit
746b262ff4
7 changed files with 21 additions and 15 deletions
|
@ -1070,7 +1070,7 @@ impl ScriptTask {
|
|||
let event: JSRef<Event> = EventCast::from_ref(*uievent);
|
||||
|
||||
let wintarget: JSRef<EventTarget> = EventTargetCast::from_ref(*window);
|
||||
let _ = wintarget.dispatch_event_with_target(None, event);
|
||||
wintarget.dispatch_event(event);
|
||||
}
|
||||
None => ()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue