Skip to content

Bookmarklet to mock multiple touch events via mouse clicks

Notifications You must be signed in to change notification settings

twolfson/Mock-Toucher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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: https://developer.mozilla.org/en-US/demos/detail/mock-toucher/launch

GitHub Demo page: http://twolfson.github.com/Mock-Toucher/

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)

About

Bookmarklet to mock multiple touch events via mouse clicks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published