Skip to content

Commit a9a0768

Browse files
author
Micah Zoltu
committed
Makes the ontouch* events on window optional.
Browsers without touch support (e.g., Firefox/Chrome on desktop) will not have `ontouch*` events defined on `window`, so the current type definition is not correct. package-lock was out of date and auto-updated on `npm install`. I can roll that back if desired.
1 parent 85ea749 commit a9a0768

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

inputfiles/overridingTypes.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,18 @@
129129
"property": {
130130
"onerror": {
131131
"override-type": "OnErrorEventHandler"
132+
},
133+
"ontouchcancel": {
134+
"nullable": 1
135+
},
136+
"ontouchend": {
137+
"nullable": 1
138+
},
139+
"ontouchmove": {
140+
"nullable": 1
141+
},
142+
"ontouchstart": {
143+
"nullable": 1
132144
}
133145
}
134146
}

0 commit comments

Comments
 (0)