Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lag on Scroll #21

Open
Hitking opened this issue Apr 8, 2016 · 2 comments
Open

Lag on Scroll #21

Hitking opened this issue Apr 8, 2016 · 2 comments

Comments

@Hitking
Copy link

Hitking commented Apr 8, 2016

Hi

I'm using the theia-sticky-sidebar script for fixing two sidebar on left and right of the container. the problem is, people which using old computers (PC with 3 or older age) figure out with very bad lag. specially laptop users has this problem. to get this fixed. I tried to add a timer on the scroll call function

// Initialize the sidebar's position.
o.onScroll(o);

        // Recalculate the sidebar's position on every scroll and resize.
        var timer;
        $(document).scroll(function() {
            if(timer) {
                window.clearTimeout(timer);
            }

            timer = window.setTimeout(function(o) {
                return function () {
                    o.onScroll(o);
                };
            }(o), 10);
        });

It's much better now but the side bar reach to the position with delay which make it unsuitable. Please help me to fixed this.

@liviucmg
Copy link
Member

@Hitking There are some performance improvements bundled in the latest version (1.5.0). Can you please try it out and let me know how it goes?

@KingKingov
Copy link

The same problem on my three-column site

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants