Skip to content

Commit

Permalink
0.4.19
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-t committed Sep 27, 2017
1 parent 6dba183 commit 379898c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chocolat",
"version": "0.4.18",
"version": "0.4.19",
"main": [
"dist/css/chocolat.css",
"dist/js/jquery.chocolat.js"
Expand Down
8 changes: 6 additions & 2 deletions dist/js/jquery.chocolat.js
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,10 @@
document.webkitExitFullscreen();
this.settings.fullscreenOpen = false;
}
else if (document.msExitFullscreen) {
document.msExitFullscreen();
this.settings.fullscreenOpen = false;
}
else {
this.settings.fullscreenOpen = true;
}
Expand Down Expand Up @@ -565,7 +569,7 @@

});
$(window).on('resize', function() {
if (!that.settings.initialized) {
if (!that.settings.initialized || that.settings.currentImage === false) {
return;
}
that.debounce(50, function() {
Expand Down Expand Up @@ -609,7 +613,7 @@
},

zoomOut : function (e, duration) {
if (this.settings.initialZoomState === null) {
if (this.settings.initialZoomState === null || this.settings.currentImage === false) {
return;
}
duration = duration || this.settings.duration;
Expand Down
Loading

0 comments on commit 379898c

Please sign in to comment.