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 - JavaFX 2 slider labelFormatter not being used -

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -