Projects
View on GitHub
benhowdle89/touche
benhowdle89/touche has 601 GitHub stars and 49 forks. GitHot measured 0 stars in 24 hours and 0 in 7 days. Last checked 2026-11-24 08:14 UTC. Last push 2017-01-24.
Measured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
About
Effortlessly re-map click events to touch events on touchscreen UIs
Developer ToolsREADME.md
OriginalTouche.js
Effortlessly re-map click events to touch events on touchscreen UIs
- Removes the 300ms delay (after the user lifts their finger), applied by all touchscreens devices and immediately invokes your click handlers.
- Takes your click events applied with jQuery and silently re-maps them to the "touchend" event for devices that support touch.
- If you're not using jQuery, then Touche exposes a method "on" for your use like so:
Usage
<!-- somewhere before the rest of your JavaScript code -->
<script type="text/javascript" src="/path/to/touche.js"></script>
Examples
// applying a click event to one element
Touche(document.querySelector('#myButton')).on('click', handleClick);
// or to multiple at once
Touche(document.querySelectorAll('.myButtons')).on('click', handleClicks);
// or with jQuery
$('.myButtons').on('click', handleClicks);
Explore related projects
Loading…