Partager via


Choose Between Pan and Scroll, or Direct Manipulation (Compact 7)

3/12/2014

Whether you should use pan and scroll gestures, or direct manipulation gestures, depends on your touch panel hardware and what you do in your application.

For a symmetric multi-touch panel, pan and scroll information is sufficient. When there are two touch points, pan and scroll messages provide the midpoint of the touch points and the distance between them, which is as much as can be known about touch points on a symmetric multi-touch panel. This is sufficient information for handling pan, scroll, pinch (zoom in) and spread (zoom out) gestures.

For a true multi-touch panel, only the direct manipulation gesture generates messages that have exact location information for two points. If the application needs this information (to implement rotate gestures, for instance), then it must request direct manipulation gestures.

See Also

Concepts

Direct Manipulation Gestures