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

Commit f2f8a40

Browse files
committed
Updated to v3.5.6
- Fixed #2151 - Swipes over the caption
1 parent bf3bd43 commit f2f8a40

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

dist/jquery.fancybox.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// ==================================================
2-
// fancyBox v3.5.5
2+
// fancyBox v3.5.6
33
//
44
// Licensed GPLv3 for open source use
55
// or fancyBox Commercial License for commercial use
@@ -3050,7 +3050,7 @@
30503050
});
30513051

30523052
$.fancybox = {
3053-
version: "3.5.5",
3053+
version: "3.5.6",
30543054
defaults: defaults,
30553055

30563056
// Get current instance and execute a command.
@@ -3965,7 +3965,7 @@
39653965
e.preventDefault();
39663966
}
39673967

3968-
if (!($.fancybox.isMobile && $target.hasClass("fancybox-caption"))) {
3968+
if (!($.fancybox.isMobile && $target.parents(".fancybox-caption").length)) {
39693969
return;
39703970
}
39713971
}

dist/jquery.fancybox.min.js

Lines changed: 2 additions & 2 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.5.5",
4+
"version": "3.5.6",
55
"homepage": "https://fancyapps.com/fancybox/3/",
66
"main": "dist/jquery.fancybox.js",
77
"style": "dist/jquery.fancybox.css",

src/js/guestures.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@
243243
e.preventDefault();
244244
}
245245

246-
if (!($.fancybox.isMobile && $target.hasClass("fancybox-caption"))) {
246+
if (!($.fancybox.isMobile && $target.parents(".fancybox-caption").length)) {
247247
return;
248248
}
249249
}

0 commit comments

Comments
 (0)