Patches

Interaction

Interaction

Capture touch events on specific layers. Note that layers must be enabled and have an opacity larger than 0 to receive touches.

Detect Double Tap or Long Press with additional patches.

Use the Touch button on a layer to quickly add interactions.

Interaction

  • Layer
  • Enable
  • Down
  • Tap
  • Position
  • Force

Layer

The layer to check for touch interactions. When no layer is specified, the touches on the whole screen are registered.

Enable

A boolean that is true when touch detection is on. To disable interactions on this layer, disable it.

Down

A boolean that is true when there is a touch on the layer.

Tap

A pulse that represents the moment a touch has been released from the layer (touch up) as long as the touch is inside of the layer and hasn’t moved.

Position

The position of the touch, relative to the center of the layer’s parent group or device

Force

A number between 0 and 1 that represents the force of the touch.