mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
Merge pull request #3379 from hraban/patch-1
[touch-events] Index TouchList as array
This commit is contained in:
@@ -16,6 +16,7 @@ flag = touchEvent.shiftKey;
|
||||
|
||||
var len:number = list.length;
|
||||
touch = list.item(0);
|
||||
touch == list[0];
|
||||
|
||||
var x: number;
|
||||
var y: number;
|
||||
|
||||
Vendored
+1
@@ -16,6 +16,7 @@ interface TouchEvent extends UIEvent {
|
||||
interface TouchList {
|
||||
length: number;
|
||||
item: (index: number) => Touch;
|
||||
[index: number]: Touch;
|
||||
}
|
||||
|
||||
interface Touch {
|
||||
|
||||
Reference in New Issue
Block a user