As mentioned in another thread, this is a poor design choice. You must endeavor to constrain your content to the viewport. Arbitrary cropping is a an ill-advised end-around.
On Jan 6, 4:46 am, Chrilith <[email protected]> wrote: > Put you content in a <div> with "overflow:hidden", set the height of > the div and you will have no scroll. > > On Jan 5, 10:04 am, Andi <[email protected]> wrote: > > > Hi! > > > I want to create a web application where no scrolling is possible. I > > do this with the following code: > > > document.addEventListener("touchmove", function(e){e.preventDefault > > ();}, false); > > > This should prevent user scrolling, but it fails, when the user > > "touchmoves" over a textarea or text input field. I tried to add the > > event listener to the textarea, but this had no effect. > > > Is there a way to effectively disable any scrolling? > > > Thank you in advance, > > Andi --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/iphonewebdev?hl=en -~----------~----~----~----~------~----~------~--~---
