I'm trying to make a small mobile safari note taking app for funzies, but so far this doesn't seem to work. I want to prevent the page from scrolling, so it has no rubber band and it looks like a webapp, but for this I use:
document.ontouchmove = function(e){
alert("calling prevent default");
e.preventDefault();
}
This works fine except in textarea, where it looks like ontouchmove never starts, so scrolling the page still happens. Has anyone figured out how to change the default Apple functionality in the text area, or have come up with an alternative to the text area that doesn't have Apple default functionality?
source
share