Closed ghost closed 10 years ago
@blairvanderhoof, can you confirm the fix?
Confirmed works, tested on IO 7 before and after and it fixed it. Updated test case with new fastclick changes here: http://jsfiddle.net/wLJ6E/4/ Compare to old, broken version here: http://jsfiddle.net/wLJ6E/3
Thanks!
http://jsfiddle.net/wLJ6E/3/
It looks like when you double tap,
this.cancelNextClick
is set to true: https://github.com/ftlabs/fastclick/blob/master/lib/fastclick.js#L486But when clicking the button afterwards, it falls into this stopImmediatePropagation section and the event never happens: https://github.com/ftlabs/fastclick/blob/master/lib/fastclick.js#L602
this.cancelNextClick
is never set to false and thus is stuck.Seems like this also happens in this demo http://ftlabs.github.io/fastclick/examples/focus.html, when double tapping then tapping B, it never focuses the input.