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

scrolling issues #198

Open
netpork opened this issue May 19, 2014 · 0 comments
Open

scrolling issues #198

netpork opened this issue May 19, 2014 · 0 comments

Comments

@netpork
Copy link

netpork commented May 19, 2014

I am trying typical slide in / slide out pages thing; I have two full absolutely positioned screen containers, one of which is off screen.

panels = container.find('>div.tm-panel');

// here i set off screen container
$(panels[1]).css({x: SCREEN_WIDTH)});
// make it visible
$(panels[1]).removeClass('tm-hidden');
// do the transitions for both containers
// first container X should be transitioned from 0 to -SCREEN_WIDTH,
// while second container X should be from -SCREEN_WIDTH to 0
$(panels).transition({
    x: '-=' + SCREEN_WIDTH / 2,
    duration: 500,
    easing: 'snap',
    complete: function() {
               ...
    }
});

Now, only device where this thing is working fine is an Ipad, while on the desktop and android chrome I get really stuttering problematic behaviour, second container is not scrolling at all etc.. Anyone have any idea what is the best way of transitioning two containers at the same time?

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

No branches or pull requests

1 participant