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, the moment the user presses down on the layer. There is no minimum hold time.
Release Action: triggers once when the user stops holding the layer.
Actions NOT Recommended in the Hold Action
The below actions are not recommended to be used in the Hold Action. They change the scene, so the Release Action may not fire.
Start Next 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.
Every Press Counts as a Hold
Because the Hold Action fires on press down, every touch on the layer runs both actions, including quick taps, swipes and drags. Avoid combining Hold and Release with other gestures on the same layer unless both outcomes should happen together.
Last updated