Patches

Drag

Drag

Drag a layer in any direction. Choose the layer to drag and then connect the Position output to the layer’s Position port.

Drag

  • Enable
  • Layer
  • Start
  • Reset
  • Settings
  • Position

Enable

A boolean that is true when dragging is enabled

Layer

The name of the layer to drag. Click the value (“None”, by default) to select a layer. Controls which layer activates drag on touch.

Start

The position the layer starts at when the prototype starts.

Reset

A pulse that resets the position to the start position.

Settings

The settings from a Drag Settings patch that further customize drag behavior.

Position

The current position of the draggable layer.