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

rwd #5

Open
markusfalk opened this issue Dec 14, 2012 · 2 comments
Open

rwd #5

markusfalk opened this issue Dec 14, 2012 · 2 comments

Comments

@markusfalk
Copy link

maybe you could also make the carousel responsive?

@karneds
Copy link
Contributor

karneds commented Jan 22, 2013

Hi. This hack make carousel more responsive.

$(window).resize(function(){
        setTimer(true);
        pluginData.currentlyMoving = false;
        setupFeatureDimensions();
        setupCarousel();
        setupFeaturePositions();
        setupTrackers();
        initiateMove(true,1);
    });

Insert before
this.initialize = function

https://github.com/bkosborne/jQuery-Feature-Carousel/blob/master/js/jquery.featureCarousel.js#L660

@beany-vu
Copy link

Agree with Karneds. In addition, you had better wrap it inside setTimeOut if you don't want it re-calculate many many times when resizing windows.

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

3 participants