javascript - event.preventDefault() not working in Hammer.js - window still moves -


the window in mobile safari moves down making bounce effect

can behaviour stopped hammer?

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1,user-scalable=no">  var statustoggle = hammer($$(this.pn1)).on("swipedown swipeup", function(e){             e.preventdefault();             e.gesture.preventdefault()             searchride.togglestatusbar();         }); 

adding work, why not working in hammer??

 pn1.addeventlistener('touchmove', function(event) {     event.preventdefault(); }, false); 

thanks


Comments

Popular posts from this blog

java - How to Configure JAXRS and Spring With Annotations -

visual studio - TFS will not accept changes I've made to a Java project -

php - Create image in codeigniter on the fly -