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

Preview box automatically closes after click on ie8 #14

Open
ghost opened this issue Aug 11, 2014 · 3 comments
Open

Preview box automatically closes after click on ie8 #14

ghost opened this issue Aug 11, 2014 · 3 comments

Comments

@ghost
Copy link

ghost commented Aug 11, 2014

I tried this with the official demo as well thinking that some of the changes I made to the code had broken the plugin but the same happens:

On IE 8 whenever I click on a thumbnail to open the preview, the preview opens and is automatically closed instantly.

Is there a way to fix this? Or is IE 8 support not part of the picture?

Thanks in advance!

@ghost
Copy link
Author

ghost commented Aug 11, 2014

I found that when I comment the following part of the code it works fine on IE 8 and doesn't seems to break anything on the other browsers:

// on window resize get the window´s size again
// reset some values..
$window.on( 'debouncedresize', function() {
...
// Comment this:
// if( typeof preview != 'undefined' ) {
// hidePreview();
// }
} );

@ursbraem
Copy link

ursbraem commented Sep 4, 2014

I experienced thhe same behaviour in Chrome 36 on iOS. I'll check if your fix works there too

@vasnakos
Copy link

Had the same issue and the solution @aholsteinson worked for me! Thanks alot!

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

2 participants