[−][src]Trait stdweb::web::event::ITouchEvent
The ITouchEvent
interface represents events that occur due to the user
interacting with a touch device (such as a phone).
Provided methods
fn alt_key(&self) -> bool
Returns whether the Alt key was down when this event was fired.
fn ctrl_key(&self) -> bool
Indicates whether the Ctrl key was down when this event fired.
fn meta_key(&self) -> bool
Indicates whether the Meta key was down when this event fired.
fn shift_key(&self) -> bool
Indicates whether the Shift key was down when this event was fired.
fn touches(&self) -> Vec<Touch>
A list of Touches for every point of contact currently touching the surface.
fn target_touches(&self) -> Vec<Touch>
A list of Touches for every point of contact that is touching the surface and started on the element that is the target of the current event.
fn changed_touches(&self) -> Vec<Touch>
A list of Touches, one for each touch touch point that just became active with the current event.