Listener Action Scripts in Rive — Detecting Double Clicks @Rive_app
Listener Action Scripts in Rive — Detecting Double Clicks  @Rive_app
Uploaded May 2026 | Updated September 2026, 38 minutes ago
Learn how to use listener action scripts in Rive to detect the difference between a single click and a double click — something that's much harder to pull off without scripting.

Jeff walks through building a double click detector script that uses a configurable time threshold to distinguish between the two events. The script fires a clicked trigger for single clicks and a doubleClicked trigger for double clicks, both of which can drive state machine transitions.

You'll see the full setup: creating the listener action script with its default template, wiring it to a view model with clicked and doubleClicked triggers, attaching it to a listener on the state machine, and applying it to a fun bubble animation with hover, pop-in, and pop-out states.

0:00 — What are listener action scripts
0:28 — Default script template structure
0:53 — Double click detector script walkthrough
2:49 — Wiring the script to a state machine listener
4:12 — Setting up state machine transitions with any state
4:54 — Applying to a bubble animation
Listener Action Scripts in Rive — Detecting Double ClicksButton Vibration EffectRive 101 - ArtboardsData Binding: Updating images at runtimeRive 101 - Exit StateRive 101 - Shapes and PathsMore Instance TricksRive 101 - Align and DistributeHow to Migrate from Legacy Events to Data Binding TriggersIntroduction to Data BindingScripting is Live in Rive ✨Feature Update: Image Fit and Align Options
Rive |

Listener Action Scripts in Rive — Detecting Double Clicks

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER