- $(function() {
- $(".vppop").on('singletap', function() {
- $(".vppop").addClass("vppopscale").delay(1500).removeClass("vppopscale");
- console.log('Single tap called');
- });
- $(".vppop").on('click', 'a', function(e) {
- var hasTouch = 'ontouchstart' in window;
- if (hasTouch) {e.preventDefault();} // Prevents link following on single tap
- });
- $(".vppop").on('doubletap', function() {
- console.log('DoubleTap Called & Link Followed');
- });
- });
Questions:
1) The singletap only works 1 time, how do I get it to work an unlimited number of times?
2) How do I get doubletap to follow the link?
3) In iOS Simulator, on tap hold: Open button doesn't seem to go to link, while Open in New Page works. Why doesn't Open work?
Thanks for the assistance.