ryrych / rcarousel

yet another jQuery UI carousel
http://ryrych.github.com/rcarousel/
171 stars 48 forks source link

debug this line, bug on vertical mode #76

Open Ayrinsoft opened 10 years ago

Ayrinsoft commented 10 years ago

// calculate the distance //_dist = options.width * _page.length + ( options.margin * _page.length );

if (options.orientation === "horizontal") { _dist = options.width * _page.length + (options.margin * _page.length); _animOpts = { scrollLeft: "+=" + _dist }; } else { _dist = options.height * _page.length + (options.margin * _page.length); _animOpts = { scrollTop: "+=" + _dist }; }

on vertical mode you set options.width, replace with height ;)