trait InteractEvent extends Object
The InteractEvent types are: Draggable: dragstart, dragmove, draginertiastart, dragend Resizable: resizestart, resizemove, resizeinertiastart, resizeend Gesturable: gesturestart, gesturemove, gestureend
To respond to InteractEvents, you must add listeners for the event types either directly on an interactable or globally for all events of those types on the interact object.
The event object that was created is passed to these functions as the first parameter.
InteractEvent properties include the usual properties of mouse/touch events such as pageX/Y, clientX/Y, modifier keys etc. But also some properties providing information about the change in coordinates and event specific data. The table below displays all of these events.
- Annotations
- @JSType() @native()
- Alphabetic
- By Inheritance
- InteractEvent
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val clientX0: Double
Client x coordinate of the starting event
- val clientY0: Double
Client y coordinate of the starting event
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- val dx: Double
Change in coordinates of the mouse/touch
- val dy: Double
Change in coordinates of the mouse/touch
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- val interactable: Element
The Interactable that is being interacted with
- val interaction: Any
The Interaction that the event belongs to
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
- val speed: Double
The speed of the pointer
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val target: Element
The element that is being interacted with
- val timeStamp: Double
The time of creation of the event object
- def toLocaleString(): String
- Definition Classes
- Object
- def toString(): String
- Definition Classes
- AnyRef → Any
- def valueOf(): Any
- Definition Classes
- Object
- val velocityX: Double
The Velocity of the pointer
- val velocityY: Double
The Velocity of the pointer
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- val x0: Double
Page x coordinate of the starting event
- val y0: Double
Page y coordinate of the starting event
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated