Hold and Release

Trigger one action on press-and-hold and a second action on release.

The Hold and Release gesture lets a single gesture run one action when the user presses and holds, and another action when the user releases.

This is useful for patterns like:

  • Hold to reveal something, release to hide it

  • Hold to begin an effect, release to stop it

  • Interactive “push button” behaviors that need separate down/up outcomes

How it Works

Unlike other gestures, Hold and Release includes two actions:

  • Hold Action: triggers once when the user begins holding the layer.

  • Release Action: triggers once when the user stops holding the layer.

circle-info

Tip: You don’t have to set both actions. If the Hold Action or Release Action is left unassigned, PLAY will simply ignore that part of the gesture (it won’t break the interaction).

Example: If you only want something to happen on release (mouse up / finger up), leave Hold Action empty and set only a Release Action. If you want something to only happen on mouse down / finger down, it is recomended to use the Single Tap action.

The below actions are not recommended to be used in the Hold Action, as they would cause the Release Action not to fire.

  • Start Scene

  • Start Random Scene

  • Restart Scene

Cursor / Pointer Out-of-Bounds Behavior

During export/playback: If the user clicks/presses down on the layer, then moves their cursor/pointer outside the layer bounds while still holding, the interaction will NOT be canceled. The Hold/Release flow continues normally, and the Release Action will still fire when the user releases.

Last updated