This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

short/long click on a button
I would like to know if there is a way how to distinguish between long and short click on a button. Would be very useful for many aplications, for example for blinds control, where it will save us half the space needed for icons.
Right now it's only possible by creating custom SVG with JavaScript which will act as a button.
Can you give a exaple please??
Attached is a minimal example of short/long press SVG. Short press sends "true" to 1/1/1, long press sends "true" to 1/1/2. Long press time is 1.5 seconds (1500ms). Add this image to Vis. graphics -> Images / Backgrounds. Add it to visualization as "Image" element, it will not work if used as an object icon.

Attached Files
.svg   btn-example.svg (Size: 1.25 KB / Downloads: 189)

Forum Jump: