mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
add cancelable
property to the TouchEvent
(#35713)
* add `cancelable` property to the `TouchEvent` set cancellable = false when sending move events to script, if the first touch_move event did not cancel it Signed-off-by: kongbai1996 <1782765876@qq.com> * modified review commentss Signed-off-by: kongbai1996 <1782765876@qq.com> --------- Signed-off-by: kongbai1996 <1782765876@qq.com>
This commit is contained in:
parent
67bd557f30
commit
929f87f598
3 changed files with 17 additions and 2 deletions
|
@ -2090,7 +2090,7 @@ impl Document {
|
|||
window,
|
||||
DOMString::from(event_name),
|
||||
EventBubbles::Bubbles,
|
||||
EventCancelable::Cancelable,
|
||||
EventCancelable::from(event.is_cancelable()),
|
||||
Some(window),
|
||||
0i32,
|
||||
&touches,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue