t

org.scalajs.interactjs

InteractEvent

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()
Linear Supertypes
Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. InteractEvent
  2. Object
  3. Any
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. val clientX0: Double

    Client x coordinate of the starting event

  6. val clientY0: Double

    Client y coordinate of the starting event

  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  8. val dx: Double

    Change in coordinates of the mouse/touch

  9. val dy: Double

    Change in coordinates of the mouse/touch

  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  13. def hasOwnProperty(v: String): Boolean
    Definition Classes
    Object
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  15. val interactable: Element

    The Interactable that is being interacted with

  16. val interaction: Any

    The Interaction that the event belongs to

  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. def isPrototypeOf(v: Object): Boolean
    Definition Classes
    Object
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  22. def propertyIsEnumerable(v: String): Boolean
    Definition Classes
    Object
  23. val speed: Double

    The speed of the pointer

  24. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  25. val target: Element

    The element that is being interacted with

  26. val timeStamp: Double

    The time of creation of the event object

  27. def toLocaleString(): String
    Definition Classes
    Object
  28. def toString(): String
    Definition Classes
    AnyRef → Any
  29. def valueOf(): Any
    Definition Classes
    Object
  30. val velocityX: Double

    The Velocity of the pointer

  31. val velocityY: Double

    The Velocity of the pointer

  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  34. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  35. val x0: Double

    Page x coordinate of the starting event

  36. val y0: Double

    Page y coordinate of the starting event

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped