The touch interfaces enable applications to create enhanced user experiences on touch enabled devices. However, the reality is the vast majority of today's web content is designed only to work with mouse input. Consequently, even if a browser supports touch, the browser must still emulate mouse events so content that assumes mouse-only input will work as is without direct modification.

Touch

Ideally, a touch-based application does not need to explicitly address mouse input. However, because the browser must emulate mouse events, there may be some interaction issues that need to be handled. Below are some details about the interaction and the ramifications for application developers.

Event firing

Mouse

The touch events standard defines a few browser requirements regarding touch and mouse interaction (see the Interaction with Mouse Events and click section for details), noting the browser may fire both touch events and mouse events in response to the same user input. This section describes the requirement that may affect an application.

Download Version 2.74-beta Mojave. OS X Mojave (MacBook with TouchBar) Download Version 2.73-alpha Sierra. OS X Sierra (MacBook with TouchBar) Alpha version - gesture bahaviors have not been completely tested. Update: Nov 12, 2017. Download Version 2.71 Sierra. Have trouble with some gestures? Download Version 2.63 El. How to download and install Mac cursor in Windows 10? Head over to the official page of DeviantArt and download the EI Capitan mouse cursor pack for Windows 10. Note: Download link is in the right sidebar. Once downloading in finished, extract the zip file to a new folder using WinRAR.

Download Remote Mouse for macOS 10.9 or later and enjoy it on your Mac. ‎Remote Mouse™ turns your iPhone or iPad into a set of wireless user-friendly remote control for your computer. It not only simulates the function of wireless mouse, keyboard and touchpad, but also provides a variety of specialty control panels, such as Media Remote. BetterTouchTool 3.404 - Customize multi-touch trackpad gestures. Download the latest versions of the best Mac apps at safe and trusted MacUpdate. Mac touchpad drivers for Windows 10. Follow these instructions to boot into macOS and download the support software then use it to update your touch pad in Windows 10.

If the browser fires both touch and mouse events because of a single user input, the browser must fire a touchstart before any mouse events. Consequently, if an application does not want mouse events fired on a specific touch target element, the element's touch event handlers should call preventDefault() and no additional mouse events will be dispatched.

Here is a code snippet of the touchmove event handler calling preventDefault().

Event order

Mouse

Although the specific ordering of touch and mouse events is implementation-defined, the standard indicates the following order is typical: for single input:

  • touchstart
  • Zero or more touchmove events, depending on movement of the finger(s)
  • touchend
  • mousemove
  • mousedown
  • mouseup
  • click

If the touchstart, touchmove or touchend event is canceled during an interaction, no mouse or click events will be fired, and the resulting sequence of events would just be:

  • touchstart
  • Zero or more touchmove events, depending on movement of the finger(s)
  • touchend

Community

Touch Mouse Download Mac Installer

Related topics and resources