Last active
September 8, 2017 13:34
-
-
Save bluvertigo/56e32d59ea86d05820bc2848df99c297 to your computer and use it in GitHub Desktop.
iOS touch event / intercettare evento touch sui device mobile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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