Add doubleClick and longPress for a GUI Button

A GUI button should also support doubleClick and longPress, like Meshes and Scenes: Events - Actions - Triggers.
Maybe these new events can also be added to other GUI elements (e.g. Image, etc.)

Original question: How to listen to doubleClick and longPress for a GUI Button?

3 Likes

Adding @carolhmj to the thread as our GUI guru

Heard that, created an issue so we can prioritize :smiley: Add double click and long press for GUI Controls · Issue #13861 · BabylonJS/Babylon.js (github.com)

3 Likes

Great suggestion! Longpress should have a configurable time to hold down and some callbacks/promises for how long it’s been pressed for so people can make cool timers/progress bars!

YES please that would be amazing