Skip to content
hackety hack for both clicks and taps to work fast
JavaScript
Latest commit 67a6700 Apr 18, 2012 Max Degterev minor fixs
Failed to load latest commit information.
static
README readme upd Mar 6, 2012
index.html just use a global array of handlers Apr 18, 2012

README

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.
Something went wrong with that request. Please try again.