Skip to main content
Addam_Winsenburg
Feb 11, 2021 10:17 PM UTC
Question

Long Press Simulation

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.

This topic has been closed for replies.

9 replies

Steven
Mar 1, 2021 12:19 PM UTC

@miggi 🤔

miggi
Figmate
Designer Advocate
Mar 1, 2021 1:28 PM UTC

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.

Viktor6
Sep 2, 2021 8:06 AM UTC

@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?

Faler_William
Oct 18, 2021 10:48 PM UTC

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

Stanislav_Volkov
Oct 25, 2021 8:27 PM UTC

It is possible. Click and long press works.

Project

Tara_Singh
Dec 9, 2022 5:06 PM UTC

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

Hamza_Tariq1
Aug 17, 2023 7:13 PM UTC

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

Dec 15, 2023 8:21 AM UTC

Is ‘Key down’ and ‘key up’ in the planning?
I need these for longpress simulation for TV apps

Tarmo
Sep 3, 2024 12:57 PM UTC

☝️ This would be awesome. 🙏