Open markusfalk opened 11 years ago
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
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.
maybe you could also make the carousel responsive?