You could try to wrap the whole function (inside click) in another IF
statement:

if (!$(this).is(':animated') ) {
   blabla;
}

thus code will only execute if the element is not being animated at
the moment. You might as well have to remove the hand cursor to be
coherent.


On Sep 25, 6:11 pm, "Mauricio \(Maujor\) Samy Silva"
<[EMAIL PROTECTED]> wrote:
> Hi Ricardo,
>
> Grato pela resposta.
> Você é bem ativo na lista heim!
>
> Sorry didn't work. :-(
> The method stop(),  stops an animation.
> I need disable the click event while the animation is running.
>
> Abraço
> Mauricio
>
> -----Mensagem Original-----
> De: "ricardobeat" <[EMAIL PROTECTED]>
> Para: "jQuery (English)" <[email protected]>
> Enviada em: quinta-feira, 25 de setembro de 2008 17:21
> Assunto: [jQuery] Re: disable click on animated objects
>
> e aí cara, já vi teu site por aí :)
>
> change the line that reads
>
> $(this).attr({width: 100, height: 75});
>
> to
>
> $(this).stop().attr({width: 100, height: 75});
>
> When you click on a thumbnail, it resizes the image and starts the
> animation, but the 'click' event is still bound to it. It does
> everything it has to do (including resizing the image) but you need to
> tell jQuery to stop the current slideDown animation.
>
> abraço
> - ricardo
>
> On Sep 25, 12:18 pm, Maujor <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > I am experiencing an undesirable behavior when click on an object
> > while it is sliding down.
> > I hosted a test case and you can see the problem
> > at:http://www.maujor.com/temp/jquery/
> > Thanks for any help

Reply via email to