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

Commit

Permalink
Updated to v3.5.6
Browse files Browse the repository at this point in the history
- Fixed #2151 - Swipes over the caption
  • Loading branch information
fancyapps committed Dec 14, 2018
1 parent bf3bd43 commit f2f8a40
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions dist/jquery.fancybox.js
@@ -1,5 +1,5 @@
// ==================================================
// fancyBox v3.5.5
// fancyBox v3.5.6
//
// Licensed GPLv3 for open source use
// or fancyBox Commercial License for commercial use
Expand Down Expand Up @@ -3050,7 +3050,7 @@
});

$.fancybox = {
version: "3.5.5",
version: "3.5.6",
defaults: defaults,

// Get current instance and execute a command.
Expand Down Expand Up @@ -3965,7 +3965,7 @@
e.preventDefault();
}

if (!($.fancybox.isMobile && $target.hasClass("fancybox-caption"))) {
if (!($.fancybox.isMobile && $target.parents(".fancybox-caption").length)) {
return;
}
}
Expand Down
4 changes: 2 additions & 2 deletions dist/jquery.fancybox.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"name": "@fancyapps/fancybox",
"description": "Touch enabled, responsive and fully customizable jQuery lightbox script",
"version": "3.5.5",
"version": "3.5.6",
"homepage": "https://fancyapps.com/fancybox/3/",
"main": "dist/jquery.fancybox.js",
"style": "dist/jquery.fancybox.css",
Expand Down
2 changes: 1 addition & 1 deletion src/js/guestures.js
Expand Up @@ -243,7 +243,7 @@
e.preventDefault();
}

if (!($.fancybox.isMobile && $target.hasClass("fancybox-caption"))) {
if (!($.fancybox.isMobile && $target.parents(".fancybox-caption").length)) {
return;
}
}
Expand Down

0 comments on commit f2f8a40

Please sign in to comment.