Chapter 9. Engaging Users by Responding to Events

In this chapter, we will cover:

  • Handling Touch Events
  • Handling Scroll Events
  • Handling Tap Events
  • Handling Double Tap Events
  • Handling TapHold Events
  • Handling Swipe Events
  • Handling Pinch Events
  • Handling Drag Events

Introduction

Key to building the interactive and responsive UI is event handling. The greater the number of events available, the better the interaction between the user and the application. For example, if we are dragging an element on the screen and if the underlying platform happens to only raise two events—one at the beginning of the drag and one at the end of the drag—then we only get two chances to interact with the element and use the corresponding handlers to respond to those events. However, ...

Get Sencha Touch Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.