This plugin allows you to detect long press gestures on any element within your Bubble app.
Customize the duration of the press required to trigger the event, and prevent default behaviors such as context menus or text selection when necessary.
Ideal for adding interactive features like long press actions to buttons, images, or other elements, this plugin gives you control over the user experience by defining specific behavior based on press duration.
Add the Plugin Element: Insert the plugin element into your page and specify the target element by its ID.
Set the Press Duration: Choose the required press duration (in milliseconds) for triggering the long press event.
Prevent Context Menu (Optional): You can prevent the right-click context menu from appearing during a long press if needed.
Disable Text Selection (Optional): If you want to prevent users from selecting text during a press, enable the text selection disable option.
Trigger Long Press Event: When the long press duration is reached, the plugin will trigger the "long_press" event, allowing you to perform actions in response to the press.
Monitor Events: The plugin provides feedback by publishing a unique ID to the state, which can be used to track events in your app.
Types
This plugin can be found under the following types: