Skip to content

Instantly share code, notes, and snippets.

@nielsvanvelzen
Created August 6, 2017 09:40
Show Gist options
  • Save nielsvanvelzen/f52d265ac532e685d982b3f72bab4f90 to your computer and use it in GitHub Desktop.
Save nielsvanvelzen/f52d265ac532e685d982b3f72bab4f90 to your computer and use it in GitHub Desktop.
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