AltynbekKZ / galleriffic

Automatically exported from code.google.com/p/galleriffic
0 stars 1 forks source link

Don't start a new transition until the active one is over. #82

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
If you rapidly click the same item twice (while the first transition is
still ongoing) you will get duplicate content.

As a small and quick fix add this @line ~513

if (!$('.image-wrapper').is(':animated')){
    this.refresh(); 
}

Basically don't call the refresh() method if there is an ongoing animation.

I'm sure this could have been achievable in a different way.

Original issue reported on code.google.com by k3liutZu@gmail.com on 22 Jan 2010 at 11:38