Bookmarklet to mock multiple touch events via mouse clicks
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Mock Toucher Donate on Gittip

A TouchEvent testing tool for non-mobile devices. The script is a bookmarklet which fires touch events on elements based on mouse clicks and movements. It additionally supports multiplexing a mouse via shift which allows the user to add additional mouse points. These points can also be removed via ctrl. Unfortunately, browser supports is very limited and has only been tested in Firefox 10.

MDN Demo page:

GitHub Demo page:

Bookmarklet: Mock Toucher

This script was written by Todd Wolfson for Mozilla Dev Derby February 2012 - Touch Events.


Things that cause modern-only support

  • document.elementFromPoint
  • CSS - pointer-events: none;
  • WeakMap (only one that can easily be replaced)