I've had the same exact experience. I'm animating the top property of a div, "up" into the negative numbers. In 1.1.4 it works just fine, but with 1.2 it almost doubles the distance.
_____ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Benjamin Sterling Sent: Tuesday, September 11, 2007 9:23 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Animation bug in 1.2 Will do, I also just did some testing and it looks like it happens when a minus sign is in play. I will post my findings to the bug report. On 9/11/07, John Resig <[EMAIL PROTECTED]> wrote: Sounds like a true bug. Could you submit a bug report? http://dev.jquery.com/ --John On 9/11/07, Benjamin Sterling <[EMAIL PROTECTED]> wrote: > Url in question: > http://benjaminsterling.com/experiments/jqGalViewV2/ > > At about line 87 and then again at line 91 I have the following: > > $holder.animate({marginTop:-($mainImgContainer.height()*index)},'1000', > opts.tnease); > > Depending on the link at bottom clicked, the marginTop gets set to what ever > $mainImgContainer.height()*index adds up to, but with a > minus infront. So if you click on eight you get -2492. And when you > clicked 7, you would get -2136. In 1.1.3 this worked fine[1]. But with 1.2 > it will just add up the marginTop, so -2492 and -2136 becomes -4628. > > In an earlier post, John[2] suggested that the animation method only took in > integers, so if I do: > > $holder.animate({marginTop:parseInt(-($mainImgContainer.height()*index))},'1 000', > opts.tnease); > > It should work, but sadly, still adds up. Is this a true bug, or am I > missing something? > > [1] http://benjaminsterling.com/experiments/jqGalView <http://benjaminsterling.com/experiments/jqGalView> > [2] > http://groups.google.com/group/jquery-en/browse_thread/thread/705cd47864c22c 49/485702b3f03547c5#485702b3f03547c5 <http://groups.google.com/group/jquery-en/browse_thread/thread/705cd47864c22 c49/485702b3f03547c5#485702b3f03547c5> > -- > Benjamin Sterling > http://www.KenzoMedia.com > http://www.KenzoHosting.com -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com