-
Notifications
You must be signed in to change notification settings - Fork 14
max-degterev/Zepto-onPress
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Zepto fast buttons without nasty ghostclicks. Supports event delegation and handlers removal. Highly inspired by http://code.google.com/mobile/articles/fast_buttons.html Usage: bind: $('#someid').onpress(function(event){}); $('#someid').offpress(function(event){}); delegation: $('#someid').onpress('.childNode', function(event){}); $('#someid').offpress('.childNode', function(event){}); Word of advice: Never ever try to attach this event handlers to: document, html, body. All sorts of weirdness going to happen. Use onclick instead.
About
hackety hack for both clicks and taps to work fast
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published