Hi Kalle I am having the exact same problem. Did you find a solution ? Thanks for your post. Johan
On Jul 5, 1:44 pm, Kalle Alm <[EMAIL PROTECTED]> wrote: > For the now, I've submitted a bug report on the pageYOffset matter. > Problem ID is 5313966. > ----------------------------------------- > 05-Jul-2007 05:34 PM Karl-Johan Alm: > Summary: > The window.pageYOffset value seems to always be 0 on the iPhone, no > matter where in the document the user is located. This in turn results > in a bug when using window.scrollBy, as it (probably) uses > window.pageYOffset to determine the new vertical value. > > Steps to Reproduce: > 1. Create a page with enough content to scroll. > 2a. Make a link or such that uses window.scrollBy(123, window.pageYOffset) > -OR- > 2b. Make a link or such that uses window.scrollBy(123, 0) > 3. Open the page on an iPhone. > 4. "Zoom in" so that there is vertical scrolling possible. > 5. Click the link created in step 2. > > Expected Results: > The position in the document should scroll horizontally but remain on > the vertical position. > > Actual Results: > The horizontal scroll occurs as expected, but the vertical position in > the document is reset to 0, i.e. the iPhone view scrolls up to the top > of the page. > > Regression: > No workarounds known at this time. > > Notes: > This bug can be observed at the following page:http://enrogue.com/iphone/ > ----------------------------------------- > > -Kalle. > > Kalle Alm wrote: > > I did make some progress using window.scrollTo(colidx*200, > > window.pageYOffset) but window.pageYOffset doesn't seem to be working > > very well because it keeps jumping up to the top. The horizontal scroll > > seems to work great though. > > > On the other hand, I tried window.scrollBy(colidx*200, 0) and that > > scrolled me up to the top too. No idea why, since it's set to scroll "0 > > pixels vertically". > > > -Kalle. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
