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

Using 'OR' and 'AND' in SQL Server -

python - Finding intersection between ellipse and a line -

c++ - NetBeans Remote Development with additional configuration -