Docs

Everything You Need to Know

Gestures

API

  • tap - has a 150 millisecond delay
  • dbltap - not longer than 250 millisecond delay between taps
  • longtap - has a 750 millisecond dealy
  • swipeleft - a minimum of 50 pixels distance
  • swiperight - a minimum of 50 pixels distance
  • swipeup - a minimum of 50 pixels distance
  • swipedown - a minimum of 50 pixels distance

Event Aliases

Besides gestures, ChocolateChip-UI provides the follow event aliases to handle the differences between different platforms. Although these are available, in most case you are better off using gestures.

On desktop:

  • $.eventStart: mousedown
  • $.eventMove: mousemove
  • $.eventEnd: mouseup
  • $.eventCancel: mousecancel

On Android:

  • $.eventStart: touchstart
  • $.eventMove: touchmove
  • $.eventEnd: touchend
  • $.eventCancel: touchcancel

On iOS:

  • $.eventStart: touchstart
  • $.eventMove: touchmove
  • $.eventEnd: touchend
  • $.eventCancel: touchcancel