Is it possible to trigger events when an element is pressed? (not clicked)

I have a group inside a repeating group. I want to create several actions that are triggered when the user presses on the element within the repeating group. Bubble allows me to do this when the element is clicked, but for this case the user will not unclick right away.

For example, the user will click and drag the mouse across the repeating group and I want to record data into a state only about the initial element that was pressed.

Hey @stephencharles you can add workflow if an element is pressed. Please check out the screenshot attached and LMK if it works.

@HariPrasad

Odd, my editor has different options. I can choose hovered but I don’t see pressed. What type of element do you have on your page?
Screen Shot 2024-08-10 at 3.08.20 PM

Probably a button.

I think you should check Draggable Elements | Bubble Docs too if you want to drag/drop something from somewhere to another place. You don’t need to necessarily drop it, you can put the thing you dragged back to its original place and still do some computation by using what you dragged and where you dropped it.

1 Like

@stephencharles This option will be enabled only inside reusable elements and try converting the Repeating group into reusable one.

1 Like

This video might be helpful.