Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug solved: Double click on filmstrip causes white panel image #59

Open
dferriz opened this issue Sep 18, 2013 · 0 comments
Open

Bug solved: Double click on filmstrip causes white panel image #59

dferriz opened this issue Sep 18, 2013 · 0 comments

Comments

@dferriz
Copy link

dferriz commented Sep 18, 2013

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant