Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mwbrooks/thumbs.js
Add touch support to your browser with thumbs.js - a small, transparent, and syntax-less library.
https://github.com/mwbrooks/thumbs.js
Last synced: 27 days ago
JSON representation
Add touch support to your browser with thumbs.js - a small, transparent, and syntax-less library.
- Host: GitHub
- URL: https://github.com/mwbrooks/thumbs.js
- Owner: mwbrooks
- License: mit
- Created: 2010-12-10T02:18:37.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-09-14T20:24:34.000Z (almost 11 years ago)
- Last Synced: 2024-04-15T02:49:08.842Z (2 months ago)
- Language: JavaScript
- Homepage: http://mwbrooks.github.com/thumbs.js/
- Size: 4.75 MB
- Stars: 318
- Watchers: 14
- Forks: 36
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- my-awesome-starred - mwbrooks/thumbs.js - Add touch support to your browser with thumbs.js - a small, transparent, and syntax-less library. (JavaScript)
README
thumbs.js
=========> Add touch support to your browser.
About
-----Small, transparent, and syntax-less library that adds touch support to your browser.
- Handy for desktop debugging
- Add touch to touch-less devices
- Does nothing on touch-enabled devices
- [PhoneGap](http://phonegap.com) and mobile web friendlyMore detail and a demo are on the [thumbs.js homepage](http://mwbrooks.github.com/thumbs.js/).
Browser Support
---------------- FireFox Desktop
- Opera Desktop
- Webkit Desktop
- Webkit MobileUsage
-----
// later on...
element.addEventListener('touchstart', callback, false);
element.addEventListener('touchend', callback, false);
element.addEventListener('touchmove', callback, false);// jQuery or zepto.js
$(element).bind('touchstart', callback);// xui
$(element).on('touchstart', callback);Building from source
--------------------Run:
make
Generates:
build/thumbs.x.x.js
build/thumbs.x.x.min.jsRunning the tests
-----------------Open in a browser:
test/index.html
Running a simple example
------------------------Open in a browser:
example/index.html
Want to contribute?
-------------------### Report or fix an issue
We use [GitHub Issues](https://github.com/mwbrooks/thumbs.js/issues)
By the way, you rock! Thanks for helping us improve thumbs.js.
### Pull Requests
Pull requests are welcome!
We appreciate the use of topic branches.
git checkout -b issue_23
# code
git commit -m "Issue 23: Fix a bad bug."
git push origin issue_23
# send pull request from branch issue_23 to mwbrooks:master