Class: Touchpad

Guacamole.Mouse.Touchpad(element)

new Touchpad(element)

Provides cross-browser relative touch event translation for a given element. Touch events are translated into mouse events as if the touches occurred on a touchpad (drag to push the mouse pointer, tap to click).
Parameters:
Name Type Description
element Element The Element to use to provide touch events.
Source:

Members

clickMoveThreshold

The maximum number of pixels to allow a touch to move for the gesture to be considered a click.
Source:

clickTimingThreshold

The maximum number of milliseconds to wait for a touch to end for the gesture to be considered a click.
Source:

currentState :Guacamole.Mouse.State

The current mouse state. The properties of this state are updated when mouse events fire. This state object is also passed in as a parameter to the handler of any mouse events.
Type:
Source:

scrollThreshold

The distance a two-finger touch must move per scrollwheel event, in pixels.
Source:

Events

onmousedown

Fired whenever a mouse button is effectively pressed. This can happen as part of a "click" gesture initiated by the user by tapping one or more fingers over the touchpad element, as part of a "scroll" gesture initiated by dragging two fingers up or down, etc.
Parameters:
Name Type Description
state Guacamole.Mouse.State The current mouse state.
Source:

onmousemove

Fired whenever the user moves the mouse by dragging their finger over the touchpad element.
Parameters:
Name Type Description
state Guacamole.Mouse.State The current mouse state.
Source:

onmouseup

Fired whenever a mouse button is effectively released. This can happen as part of a "click" gesture initiated by the user by tapping one or more fingers over the touchpad element, as part of a "scroll" gesture initiated by dragging two fingers up or down, etc.
Parameters:
Name Type Description
state Guacamole.Mouse.State The current mouse state.
Source: