jackwanders/GalleryView

Bug solved: Double click on filmstrip causes white panel image

Opened this issue · 0 comments

I've been experiencing some problems using that plugin on some of my websites. When I double click the actual filmstrip frame, the image disappears till a new click on the frame is make. To solve this bug i've added some lines across the code:

on $.fn.galleryView.defaults add next property:
actual_frame: 0

then on bindActions change:
dom.gv_filmstripWrap.delegate('.gv_frame','click.galleryview',function(){
var el = $(this),
i = el.data('frameIndex');
this.navAction = 'frame';
self.showItem(i);
return false;
});
TO:
dom.gv_filmstripWrap.delegate('.gv_frame','click.galleryview',function(){
var el = $(this),
i = el.data('frameIndex');
this.navAction = 'frame';
self.opts.actual_frame = i;
self.showItem(i);
return false;
});
and on showItem function add the next conditional on the next switch cases:
if ( this.iterator != self.opts.actual_frame )
{
(...functions to change image )
}

hope that could help any one.
salut!