File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
build-logic/generatorlegacybuild/src/main/kotlin/karakum/browser
kotlin-browser/src/commonMain/generated/web/uievents Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -306,6 +306,11 @@ private fun event(
306
306
}
307
307
""" .trimIndent()
308
308
309
+ // WA for desktop Safari
310
+ if (name == " TouchEvent" ) {
311
+ eventBody = " @JsName(\" globalThis.$name \" )\n $eventBody "
312
+ }
313
+
309
314
eventBody = eventBody
310
315
.withComment(
311
316
fullSource = source,
Original file line number Diff line number Diff line change @@ -4,13 +4,15 @@ package web.uievents
4
4
5
5
import js.reflect.unsafeCast
6
6
import web.events.EventType
7
+ import kotlin.js.JsName
7
8
import kotlin.js.definedExternally
8
9
9
10
/* *
10
11
* The **`TouchEvent`** interface represents an UIEvent which is sent when the state of contacts with a touch-sensitive surface changes.
11
12
*
12
13
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent)
13
14
*/
15
+ @JsName(" globalThis.TouchEvent" )
14
16
open external class TouchEvent (
15
17
override val type : EventType <TouchEvent >,
16
18
init : TouchEventInit = definedExternally,
You can’t perform that action at this time.
0 commit comments