t

org.scalajs.interactjs

InertiaOptions

trait InertiaOptions extends Object

Inertia allows drag and resize actions to continue after the user releases the pointer at a fast enough speed. The required launch speed, end speed and resistance can optionally be configured with the settings below.

If an action ends without inertia but is snapped or restricted with the endOnly option, then the the coordinates are interpolated from the end coords to the snapped/restricted coords.

Annotations
@JSType()
Linear Supertypes
Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. InertiaOptions
  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. val allowResume: UndefOr[Boolean]

    allowResume is a boolean value which indicates whether the user should be allowed to resume an action while it is in the inertia phase.

    allowResume is a boolean value which indicates whether the user should be allowed to resume an action while it is in the inertia phase.

    Annotations
    @JSOptional()
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  7. val endSpeed: UndefOr[Double]

    endSpeed is the speed (pixels per second) at which the action is considered to have stopped.

    endSpeed is the speed (pixels per second) at which the action is considered to have stopped.

    Annotations
    @JSOptional()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  11. def hasOwnProperty(v: String): Boolean
    Definition Classes
    Object
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. def isPrototypeOf(v: Object): Boolean
    Definition Classes
    Object
  15. val minSpeed: UndefOr[Double]

    The minSpeed is a number which is the minimum launch speed (pixels per second) that can start inertia.

    The minSpeed is a number which is the minimum launch speed (pixels per second) that can start inertia.

    Annotations
    @JSOptional()
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  19. def propertyIsEnumerable(v: String): Boolean
    Definition Classes
    Object
  20. val resistance: UndefOr[Double]

    The resistance is a number greater than zero which sets the rate at which the action slows down.

    The resistance is a number greater than zero which sets the rate at which the action slows down. Higher values slow it down more quickly.

    Annotations
    @JSOptional()
  21. val smoothEndDuration: UndefOr[Boolean]

    smoothEndDuration is the duration (milliseconds) of the interpolated movement from the actual end coords to the position that is snapped or restricted with endOnly.

    smoothEndDuration is the duration (milliseconds) of the interpolated movement from the actual end coords to the position that is snapped or restricted with endOnly. Set the value to 0 to disable end transitions with endOnly snap/restrict.

    Annotations
    @JSOptional()
  22. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  23. def toLocaleString(): String
    Definition Classes
    Object
  24. def toString(): String
    Definition Classes
    AnyRef → Any
  25. def valueOf(): Any
    Definition Classes
    Object
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  29. val zeroResumeDelta: UndefOr[Boolean]

    zeroResumeDelta is a boolean which can allow the jump when resuming from inertia to be ignored in the next move event’s dx/dy.

    zeroResumeDelta is a boolean which can allow the jump when resuming from inertia to be ignored in the next move event’s dx/dy. This should be set to true (default) when resizing with inertia or dragging or panning elements around. For things like drawing on a canvas it should generally be changed to false.

    Annotations
    @JSOptional()

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