This script was rebuilt and moved into a proper Github repo: https://github.com/mckamey/doubleTap.js
See the old version for a more basic polyfill which only implements the dblclick event.
This script was rebuilt and moved into a proper Github repo: https://github.com/mckamey/doubleTap.js
See the old version for a more basic polyfill which only implements the dblclick event.
This code is still useful for iOS, but I found that on Chrome 53 for Android, the dblclick
event is supported and the polyfill causes dblclicks to run twice. This code:
if (!('ontouchstart' in elem)) {
// non-touch has native dblclick and no need for polyfill
return;
}
...evaluates to false. I'm using this check instead:
if(elem.ondblclick === undefined) {
Where is the like button when you need it :)