Skip to main content

Touch Events

WATCH & LEARN0:36 · Animated tutorial
5 scenesPlay, pause, or scrub at your own pace

Wisej.NET supports all touch events on mobile and touch devices, and it simulates most of the touch events on desktop non-touch devices.

Using the same events across touch and non-touch devices lets your application handle interactions through a shared set of event handlers.

Supported events​

Wisej.NET supports the following touch events:

  • Tap. Fired when a pointer taps on the screen.
  • LongTap. Fired when a pointer holds on the screen.
  • Pinch. Fired when two fingers move apart or toward each other.
  • Swipe. Fired when a pointer swipes across the screen.
  • Track. Fired when a pointer grabs a control and moves over it.
  • TouchStart. Fired when a touch point is placed on the screen.
  • TouchMove. Fired when a touch point is moved over the screen.
  • TouchEnd. Fired when a touch point is removed from the screen.
  • TouchCancel. Fired when a touch point is canceled by the implementation. For example, if a new item is created on top of the surface that fired TouchStart.
warning

Event handling for these events is activated only if there is an event handler attached. See Lazy Events.

Simulated Events​

  • Tap. Similar to Click.
  • LongTap. Fired when the mouse is pressed and held down.
  • Swipe. Fired when the mouse is pressed and moved quickly.
  • Track. Fired when the mouse is pressed and moved.
  • TouchStart. Fired when the mouse is pressed.
  • TouchMove. Fired when the mouse moves over the control. Similar to MouseMove.
  • TouchEnd. Fires when the mouse is released.

See what data you get on a desktop for a simulated Swipe event.