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()
- Alphabetic
- By Inheritance
- InertiaOptions
- 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
- 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()
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- 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()
- 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()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
- 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()
- 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 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()
- 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()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toLocaleString(): String
- Definition Classes
- Object
- def toString(): String
- Definition Classes
- AnyRef → Any
- def valueOf(): Any
- Definition Classes
- Object
- 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 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
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated