Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import org.w3c.dom.events.EventTarget
import org.w3c.dom.events.UIEvent
external abstract class TouchEvent : UIEvent {
open val touches: Array<Touch>
open val targetTouches: Array<Touch>
open val changedTouches: Array<Touch>
open val altKey: Boolean
open val metaKey: Boolean
open val ctlKey: Boolean
open val shiftKey: Boolean
}
external abstract class Touch {
open val identifier: Long
open val target: EventTarget
open val screenX: Double
open val screenY: Double
open val clientX: Double
open val clientY: Double
open val pageX: Double
open val pageY: Double
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.