On Jan 7, 4:05 am, Andi <[email protected]> wrote:
> Hi!
>
> Im an using this meta-tag:
>
> meta name="viewport" content="minimum-scale=1.0, width=device-width,
> height=460, maximum-scale=1.0, user-scalable=no"
>
> and and the body tag has the following style:
>
> width: 320px;
> height: 460px;
> overflow: hidden;

That is a completely ridiculous style.  Do *not* set overflow:hidden
on the body.

>
> The javascript
>
> document.addEventListener("touchmove", function(e){e.preventDefault
> ();}, false);

Also ridiculous.  Your design is botched from the start if you need to
stoop to these sorts of things?

>
> should prevent the rubber-band scrolling behavior of Mobile Safari.

Maybe the user doesn't want it to!

> And it works, except for the following situation:

That must be an alternate definition of "works."

>
> You have a textarea and the user touches the textarea, holds and drags
> up or down. In this situation the rubber-band scrolling is active,
> despite the js.

So what?

>
> So, the problem is not about, that there would be anything to scroll,
> but about the rubber-band effect.

The problem is that you don't understand how the Web works.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to