Javascript - (Touch, Mouse, Pointer Events)

Description

The "Javascript - (Touch, Mouse, Pointer Events)" section contains a number of event hooks for controls in the UX. Your own javascript can be added to these events and will then run whenever the given event fires. These events are designed for use with mobile devices.

The "Javascript - (Touch, Mouse, Pointer Events)" section is similar to the "Javascript" events, only that the events here have been abstracted for use with mobile devices. Events in the "Javascript" section, like the 'onClick' event, were designed to be used in correlation with a mouse or a keyboard. When run on a mobile phone, however, the 'onClick' event usually has a 300ms delay that occurs after a user clicks on their device and before the specified javascript is run. This delay can make the interface of a taylored mobile application cumbersome to use. Therefore this new list of 'abstract' events was created. The abstracted 'click' event will always fire on the 'up'; exactly when the user either lifts their finger off a touchscreen.

Name
Description
click

Specify the Javascript for this event. The click event fires when the user presses and releases an element, with either the mouse, a finger, or a pointer. Note that if, by the time the release takes place, the mouse, finger, or pointer has moved off the original target position, then the event is not fired. Some elements do not have this event.

dblClick

Specify the Javascript for this event. The dblClick event fires when the user double clicks on an element, with either the mouse, a finger, or a pointer. Some elements do not have this event.

dblTap

Specify the Javascript for this event. The click event fires when the user double taps on an element, with either the mouse, a finger, or a pointer. Some elements do not have this event.

down

Specify the Javascript for this event. The down event fires when the user presses down on an element, with either the mouse, a finger, or a pointer. Some elements do not have this event.

downHold

Specify the Javascript for this event. The downHold event fires when the user presses on an element and does not release for a certain amount of time, with either the mouse, a finger, or a pointer. Some elements do not have this event.

move

Specify the Javascript for this event. The move event fires when the user moves on an element; with either the mouse, a finger, or a pointer. Some elements do not have this event.

swipe

Specify the Javascript for this event. The swipe event fires when the user swipes, in any direction, on an element, with either a finger, mouse, or pointer. Some elements do not have this event.

swipeDown

Specify the Javascript for this event. The swipeDown event fires when the user swipes down on an element, with either a finger, mouse, or pointer. Some elements do not have this event.

swipeLeft

Specify the Javascript for this event. The swipeLeft event fires when the user swipes left on an element, with either a finger, mouse, or pointer. Some elements do not have this event.

swipeRight

Specify the Javascript for this event. The swipeRight event fires when the user swipes right on an element, with either a finger, mouse, or pointer. Some elements do not have this event.

swipeUp

Specify the Javascript for this event. The swipeUp event fires when the user swipes up on an element, with either a finger, mouse, or pointer. Some elements do not have this event.

tap

Specify the Javascript for this event. The click event fires when the user taps on an element, with either the mouse, a finger, or a pointer.

up

Specify the Javascript for this event. The up event fires when the user releases after a press down on an element, with either the mouse, a finger, or a pointer. Some elements do not have this event.