Skip to content

Commit

Permalink
Fixed caption keeps disappeared on double click #139 and added better…
Browse files Browse the repository at this point in the history
… close symbol #133
  • Loading branch information
root committed Jun 6, 2019
1 parent 6e29c3c commit cecf53c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ $add-vendor-prefixes: true !default;


### Changelog
**1.17.2 - Fixed caption keeps disappeared on double click #139 and added better close symbol #133**
**1.17.1 - Added webp in fileExt list #135, removed hardcoded a-tag in isValidLink function #134**
**1.17.0 - Merged pull request #132. Added double click to zoom for desktop browsers - Thanks to coderkan**
**1.16.3 - Merged pull request #126,#127 - Thanks to jieter**
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "simplelightbox",
"version": "1.17.1",
"version": "1.17.2",
"homepage": "http://simplelightbox.com/",
"authors": [
"André Rinas <[email protected]> (https://www.andrerinas.de)"
Expand Down
5 changes: 3 additions & 2 deletions dist/simple-lightbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
By André Rinas, www.andrerinas.de
Documentation, www.simplelightbox.de
Available for use under the MIT License
1.17.1
1.17.2
*/
;( function( $, window, document, undefined )
{
Expand All @@ -25,7 +25,7 @@ $.fn.simpleLightbox = function( options )
captionPosition: 'bottom',
captionClass: '',
close: true,
closeText: '×',
closeText: '&times;',
swipeClose: true,
showCounter: true,
fileExt: 'png|jpg|jpeg|gif|webp',
Expand Down Expand Up @@ -660,6 +660,7 @@ $.fn.simpleLightbox = function( options )
setZoomData(0,0,initialScale);
zoomPanElement(0 + "px", 0 + "px", initialScale);
zoomed = false;
$('.sl-caption').fadeIn(200);
}

setTimeout(function(){
Expand Down
4 changes: 2 additions & 2 deletions dist/simple-lightbox.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "simplelightbox",
"version": "1.17.1",
"version": "1.17.2",
"description": "Touch-friendly image lightbox for mobile and desktop with jQuery",
"main": "dist/simple-lightbox.js",
"style": "dist/simplelightbox.scss",
Expand Down

0 comments on commit cecf53c

Please sign in to comment.