javascript - how do you prevent page scroll in textarea on mobile safari -


I'm trying to create a small note pad app for mobile safari, but it does not work yet Does it out I want to stop page scrolling so it does not have a rubberband and looks like a webapp but I am using it to:

  document.ontouchmove = function ( E) {alert ("stop calling error"); E.preventDefault (); }  

It works great in addition to textarea where it looks that if ontouchmove is never removed then page scrolling still occurs. Did anyone have thought that to change the default functionality of the apple in the text field or the option of the text field that is not the default functionality of Apple?

There is no good solution at this time. I found a project that is struggling with this problem and people have got creative with the hidden spans on the text areas, but it is still a very small train for me.

I think this is just a limitation for Mobile Safari because there is not a good solution at this time which I can get at this time.


Comments