Skip to main content

Is there a version of “on click” that can be initiated by a long press? When using “while pressing” to open a menu, as soon as the user lets go the menu disappears, so they can’t actually use the menu (only display it briefly).


If there isn’t a way to simulate this, would love there to be. It’s a fairly common pattern these days.

@miggi 🤔




You can simulate a long press using a sequence of mouse down, after delay and mouse up.


Duplicate this file to test it out: Figma


Let me know if you have any additional questions.


@miggi

I would rephrase the question:

Are you going to make it possible to have (at least) two (inter)actions on a single hotspot - click on and long press on?


I would love the same functionality for gamepad/keyboard support. Long presses are very common in gaming.



It is possible. Click and long press works.


Project


Hi, It would be great if you can share the open editable file.


The algo won’t work on a tap though, just on mouse. There should be a long press feature just like there’s tab.


Is ‘Key down’ and ‘key up’ in the planning?

I need these for longpress simulation for TV apps


☝️ This would be awesome. 🙏


Reply