Skip to content

Instantly share code, notes, and snippets.

@bluvertigo
Last active September 8, 2017 13:34
Show Gist options
  • Select an option

  • Save bluvertigo/56e32d59ea86d05820bc2848df99c297 to your computer and use it in GitHub Desktop.

Select an option

Save bluvertigo/56e32d59ea86d05820bc2848df99c297 to your computer and use it in GitHub Desktop.
iOS touch event / intercettare evento touch sui device mobile
var dragging = false;
$('.facetapi-facetapi-links > .leaf > a')
.on('touchmove', function(){
dragging = true;
})
.on('touchend', function(){
if (dragging)
return;
})
.on('touchstart', function(){
dragging = false;
$(this).addClass('facet-clicked');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment