jQuery-Feature-Carousel icon indicating copy to clipboard operation
jQuery-Feature-Carousel copied to clipboard

rwd

Open markusfalk opened this issue 13 years ago • 2 comments

maybe you could also make the carousel responsive?

markusfalk avatar Dec 14 '12 09:12 markusfalk

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

karneds avatar Jan 22 '13 08:01 karneds

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.

beany-vu avatar Oct 15 '15 09:10 beany-vu