Jquery touchstart - how to stop Copy/Define iPad/iOS -


i have created simple jquery scroll div on page works perfectly, apart on ipad, touching down button length of time cause ipad ask if want copy or define.

is there way tell not this? or there way whole scroll thing on ipad/ios?

here's jquery (also using mousedown desktops):

$('#down').on( "mousedown touchstart", function(){          timeoutid = setinterval(function(){scrollit(5)}, 20);     }).bind('mouseup mouseleave', function() {         clearinterval(timeoutid);     }); 

found answer, inspiration guys:

firstly: e.preventdefault(); causes horrible vibrating reason there tried return false works perfectly.

answer

$('#down').on( "mousedown touchstart", function(){          timeoutid = setinterval(function(){scrollit(5)}, 20);         return false;     }).bind('mouseup touchend', function() {         clearinterval(timeoutid);     }); 

Comments