Supporting Touch Events
Many UX controls’ Properties offer the group shown here:
In controls in Section 1, you saw that to have one of these Events do something, you click its smart button , and then add Action JavaScript.
Here is an example of Action JavaScript that has been associated with a click Event:
Those same UX controls also have the Properties group shown here, that has very similar Events:
The difference between those two groups of Events is that the ones in the first group have the control wait 300 milliseconds before interpreting a “touch” as a “click”.
In other words, the control waits to see if a touch lasts beyond 300 milliseconds, and then interprets the event.
Example: A user intends to swipe a Panel Card, but their finger inadvertently lands on a button instead of on an open area.
- If the touch lasts more than 300 milliseconds, that is not a JavaScript onClick Event.
- Since the user holds the button longer than a JavaScript onClick, the control waits for the rest of the Touch Event to occur (the swipe, or whatever else happens).