Having no actual idea and just venturing a guess, I'd say maybe there's a compounding rounding error or something? Maybe try setting the correct value after the animation has completed (via a callback)?
--Erik On 6/17/07, Byron <[EMAIL PROTECTED]> wrote:
Hi all, this is my first post to this list and my first attempt at porting a script to jquery, Ok so anyway... I've made this smooth image-list slider : http://dev.byron-adams.com/jquery/slider.html it was originally using prototype & scriptaculous (130kb+) so it works pretty well, except for one issue that seems to have somthing to do with the animate function/method let me attempt to explain how this works, if you click the right arrow button $("#control-next"), the $ ('#imageBoxInside') box will slide a set amount of pixels to the left, in this case it slides to -720px; and if you click the left button (after clicking the right one) it SHOULD scroll back to 0px, but instead, its scrolling back past 0px all the way to -2px. At first I thought this was obviously an error on myhalf, but apon futher inspection the problem seems to with jquerys animate()... some googling revealed this has occured before: http://blog.joshuaeichorn.com/archives/2007/01/11/jquery-image-strip/#comment-192037 and it doesnt seem like the author of that script is even aware of it... anyone encountered this before? any ideas? any response welcome :)