mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-03-29 22:38:33 +08:00
remove touch-events/touch-events.d.ts. it included in lib.d.ts (typescript-1.5.3)
This commit is contained in:
27
touch-events/touch-events.d.ts
vendored
27
touch-events/touch-events.d.ts
vendored
@@ -3,29 +3,4 @@
|
||||
// Definitions by: Kevin Barabash <https://github.com/kevinb7>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
interface TouchEvent extends UIEvent {
|
||||
touches: TouchList;
|
||||
targetTouches: TouchList;
|
||||
changedTouches: TouchList;
|
||||
altKey: boolean;
|
||||
metaKey: boolean;
|
||||
ctrlKey: boolean;
|
||||
shiftKey: boolean;
|
||||
}
|
||||
|
||||
interface TouchList {
|
||||
length: number;
|
||||
item: (index: number) => Touch;
|
||||
[index: number]: Touch;
|
||||
}
|
||||
|
||||
interface Touch {
|
||||
identifier: number;
|
||||
target: EventTarget;
|
||||
screenX: number;
|
||||
screenY: number;
|
||||
clientX: number;
|
||||
clientY: number;
|
||||
pageX: number;
|
||||
pageY: number;
|
||||
}
|
||||
// DEPRECATED: use TypeScript 1.5.3
|
||||
|
||||
Reference in New Issue
Block a user