rdallasgray/roto — Issue #14: rotoGoto breaks the next and prev buttons
Author: jorgeacurcio
Created: 2011-11-30 19:39:32+00:00
State: open

Hi again,
while experimenting width you awesome plug-in, I've found something strange that I can't solve myself.

My situation is this:

I want that on resize the slider jumps to the first slide. I was doing that width:

$(window).resize(function (){
$("#slider_normal").trigger("rotoGoto",0);
$("#slider_normal").trigger("rotoContentChange");
});

That works just fine, but then I tried to implement a infobox with the current slider and the ability to navigate the slider with buttons.

If I don't resize the browser everything works just fine, but when I resize, the next and previous buttons stop working and the current slider no longer updates.

The problem seems to be in the 'rotoGoto' trigger, because if I don't trigger it, the content works normally.

Do you have any suggestions, or any possible cause for this? Maybe there's another way to achieve what I want..