mirror of
https://github.com/servo/servo.git
synced 2025-06-21 07:38:59 +01:00
Dispatch touch events and perform default touch actions.
This is currently limited to simple single-touch actions. It does not include momentum scrolling or pinch zooming.
This commit is contained in:
parent
4ed15a8853
commit
fe7460f34d
9 changed files with 276 additions and 15 deletions
|
@ -160,5 +160,12 @@ pub enum ScriptToCompositorMsg {
|
|||
GetClientWindow(IpcSender<(Size2D<u32>, Point2D<i32>)>),
|
||||
MoveTo(Point2D<i32>),
|
||||
ResizeTo(Size2D<u32>),
|
||||
TouchEventProcessed(EventResult),
|
||||
Exit,
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Serialize)]
|
||||
pub enum EventResult {
|
||||
DefaultAllowed,
|
||||
DefaultPrevented,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue