mirror of
https://github.com/servo/servo.git
synced 2025-09-30 08:39:16 +01:00
Set composed flag for TouchEvent
(#39138)
Following the definition of `TouchEvent` in https://w3c.github.io/touch-events/#list-of-touchevent-types, all `TouchEvent` should have its `composed` flag set to be able to propagate past a shadow root layer. Part of #35997 Testing: Would require a testdriver. Signed-off-by: Jo Steven Novaryo <jo.steven.novaryo@huawei.com>
This commit is contained in:
parent
8f4ced66d7
commit
b1ab72e589
2 changed files with 20 additions and 2 deletions
|
@ -44,7 +44,7 @@ use crate::dom::bindings::refcounted::Trusted;
|
|||
use crate::dom::bindings::root::MutNullableDom;
|
||||
use crate::dom::clipboardevent::ClipboardEventType;
|
||||
use crate::dom::document::{FireMouseEventType, FocusInitiator, TouchEventResult};
|
||||
use crate::dom::event::{EventBubbles, EventCancelable, EventDefault};
|
||||
use crate::dom::event::{EventBubbles, EventCancelable, EventComposed, EventDefault};
|
||||
use crate::dom::gamepad::gamepad::{Gamepad, contains_user_gesture};
|
||||
use crate::dom::gamepad::gamepadevent::GamepadEventType;
|
||||
use crate::dom::inputevent::HitTestResult;
|
||||
|
@ -870,6 +870,7 @@ impl DocumentEventHandler {
|
|||
DOMString::from(event_name),
|
||||
EventBubbles::Bubbles,
|
||||
EventCancelable::from(event.is_cancelable()),
|
||||
EventComposed::Composed,
|
||||
Some(window),
|
||||
0i32,
|
||||
&touches,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue