pkdevbox / iui

Automatically exported from code.google.com/p/iui
MIT License
0 stars 0 forks source link

Smooth-animation code hangs #64

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The code here:
http://iui.googlecode.com/svn/branches/TRY-smooth-animation/iui/iui.js
hangs when scrolling from or to larger pages.

I fixed some cases of this by removing the code that clones nodes and then
almost immediately deletes the clone. For example, in the following:

    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);

if I delete the 4 lines that refer to "from2", my project works a lot
better. There is similar code for the !backwards case, with 4 lines
referring to "page2".

Original issue reported on code.google.com by markdionne on 25 Feb 2008 at 9:59

GoogleCodeExporter commented 8 years ago
When it hangs, does the menu appear to be "jittery" and obviously erratic?

Original comment by brads...@gmail.com on 23 Mar 2010 at 8:53

GoogleCodeExporter commented 8 years ago
Note: The "smooth animation" code was experimental, only lives in revision 
control and was never released.  iUI 
now uses CSS Transitions to provide a smoother sliding effect.

@bradspry -Are you using the "smooth animation" code from SVN/Hg or an official 
release of iUI?

Original comment by msgilli...@gmail.com on 24 Mar 2010 at 5:31