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
Post a Comment