Skip to content
bitpshr edited this page Jan 25, 2013 · 7 revisions

util/touch

The util/touch module defines two simple extension events, tap and doubletap, for detecting the respective actions on touch devices.

In addition, it exposes the following functions:

  • countCurrentTouches(event, node) - a function which counts the number of currently active touches which fall within the given node; useful in cases where other handlers may call stopPropagation, thus affecting other means of counting touches.
  • selector(selector, eventType, children) - a version of the selector function from dojo/on, with an additional fix to work around issues experienced on iOS Safari. This is used by dgrid/Selection and dgrid/tree for touch event handling.
Clone this wiki locally