I tried out the unofficial "smooth animation" version of IUI at:
http://iui.googlecode.com/svn/branches/TRY-smooth-animation/iui/iui.js
and it is a great improvement. The scrolling is a lot smoother.

BUT, I found that when scrolling backward from a very large page,
sometimes the scroll would hang for 5 to 20 seconds, or require a
second hit on the back button.

I traced the problem to the slidePages function which has:

    if (backwards)
    {
        var from2 = fromPage.cloneNode(true);
        from2.style.left = "100%";
        document.body.appendChild(from2);
        scrollTo(320, 1);
    }

    setTimeout(function()
    {
        if (backwards)
        {
            fromPage.style.left = "100%";
            document.body.removeChild(from2);
        }

and it appears that the removeChild call is where it hangs. After
scratching my head for a while, I tried deleting the code that clones,
appends and then removes the page, and it seems to work a lot better.
(I deleted the four lines that refer to "from2".)

-mark


On Jan 26, 7:30 pm, Peter Blazejewicz <[EMAIL PROTECTED]>
wrote:
> hi Steve,
>
> althouhg I'm using gwt as well I know iui really well: window
> (viewport) scroll based iui slide is already in iui sources from some
> time (not in official release but within svn 
> repository):http://iui.googlecode.com/svn/branches/TRY-smooth-animation/iui/iui.js
> it could save you some time in implementation,

--~--~---------~--~----~------------~-------~--~----~
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