Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone Safari: Scroll a list inside a html container

I did a lot of research about this topic and didn't yet find a satisfying answer:

How can I make a scrollable list (iPhone SDK Dashboard List) inside some other html content? If I create a list inside a html body and I try to scroll the whole page is scrolled. I know there is this "double finger" scrolling, but that's not what i want.

Is there some way to prevent the whole iPhone Safari Webpage from scrolling and instead letting other lists inside scroll? Like redirecting java script events?

Background: the idea is to mimic a real native application behavior with tabs at the bottom and a selection list in the body.

Appreciate any hints! Thanks, Patrick

like image 881
Patrick Avatar asked Apr 22 '09 14:04

Patrick


1 Answers

Ok, after consulting some friends, I found the answer to this question:

http://doctyper.com/archives/200808/fixed-positioning-on-mobile-safari/

have fun.

like image 189
Patrick Avatar answered Oct 15 '22 06:10

Patrick