Codeinwp / carouFredSel-jQuery

A circular, responsive carousel plugin built using the jQuery.
http://caroufredsel.dev7studios.com
Other
318 stars 476 forks source link

Height variable on mobile #35

Open ghost opened 9 years ago

ghost commented 9 years ago

I have a slider with 2 slides. Options: { responsive:true, height: 'variable' }

When scroll bottom (on mobile), browser address bar pannel will hide, slider update height and jump to top. And when scroll to top, browser address bar pannel will show and slider update sizes and jump to top too. How fix it?

bialabs commented 9 years ago

same here, found a solution?

ghost commented 9 years ago

no. I call callback 'updateSizes' some times and carousel calculate mobile browser url bar height) only when scroll top, and only when scroll bottom after this bar hide

ghost commented 9 years ago

This issue still open! Can anyone have some solution?

ghost commented 9 years ago

Ok. Here is a solution $(window).scroll(function () { $("body").attr("height",$(document).scrollTop()); });

$(window).on("resize", function(e){ e.preventDefault(); $(document).scrollTop($("body").attr("height")) });