interact

Members

(static) debug

Returns an object which exposes internal data

Source:

(static) isSet

Check if an element or selector has been set with the interact function

Source:

(static) off

Removes a global InteractEvent listener or DOM event from document

Source:

(static) on

Add a global listener for an InteractEvent or adds a DOM event to document

Source:

(static) pointerMoveTolerance

Returns or sets the distance the pointer must be moved before an action sequence occurs. This also affects tolerance for tap events.

Source:

(static) stop

Cancels all interactions (end events are not fired)

Source:

(static) supportsPointerEvent

Source:

(static) supportsTouch

Source:

(static) use

Use a plugin

Source:

Methods

(static) maxInteractions(newValueopt)

Returns or sets the maximum number of concurrent interactions allowed. By default only 1 interaction is allowed at a time (for backwards compatibility). To allow multiple interactions on the same Interactables and elements, you need to enable it in the draggable, resizable and gesturable 'max' and 'maxPerElement' options.

Source:
Parameters:
Name Type Attributes Description
newValue number <optional>

Any number. newValue <= 0 means no interactions.