Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.

Commit 65c7433

Browse files
committed
Fix #1653 - Random slides missing in IE11
1 parent fa1efbe commit 65c7433

File tree

4 files changed

+8
-10
lines changed

4 files changed

+8
-10
lines changed

dist/jquery.fancybox.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// ==================================================
2-
// fancyBox v3.1.26
2+
// fancyBox v3.1.27
33
//
44
// Licensed GPLv3 for open source use
55
// or fancyBox Commercial License for commercial use
@@ -1760,7 +1760,7 @@
17601760
.attr('src', slide.src)
17611761
.appendTo( slide.$content );
17621762

1763-
if ( $img[0].complete ) {
1763+
if ( ( $img[0].complete || $img[0].readyState == "complete" ) && $img[0].naturalWidth && $img[0].naturalHeight ) {
17641764
$img.trigger( 'load' );
17651765

17661766
} else if( $img[0].error ) {
@@ -2095,7 +2095,6 @@
20952095
effect = 'fade';
20962096
}
20972097

2098-
20992098
// Zoom animation
21002099
// ==============
21012100

@@ -2646,7 +2645,7 @@
26462645

26472646
$.fancybox = {
26482647

2649-
version : "3.1.26",
2648+
version : "3.1.27",
26502649
defaults : defaults,
26512650

26522651

dist/jquery.fancybox.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@fancyapps/fancybox",
33
"description": "Touch enabled, responsive and fully customizable jQuery lightbox script",
4-
"version": "3.1.26",
4+
"version": "3.1.27",
55
"homepage": "http://fancyapps.com/fancybox/",
66
"main": "./dist/jquery.fancybox.js",
77
"author": "fancyApps",

src/js/core.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1750,7 +1750,7 @@
17501750
.attr('src', slide.src)
17511751
.appendTo( slide.$content );
17521752

1753-
if ( $img[0].complete ) {
1753+
if ( ( $img[0].complete || $img[0].readyState == "complete" ) && $img[0].naturalWidth && $img[0].naturalHeight ) {
17541754
$img.trigger( 'load' );
17551755

17561756
} else if( $img[0].error ) {
@@ -2085,7 +2085,6 @@
20852085
effect = 'fade';
20862086
}
20872087

2088-
20892088
// Zoom animation
20902089
// ==============
20912090

0 commit comments

Comments
 (0)