photoswipe-rails 4.1.1 → 4.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/assets/javascripts/photoswipe/photoswipe-ui-default.js +2 -2
- data/app/assets/javascripts/photoswipe/photoswipe.js +20 -4
- data/app/assets/stylesheets/photoswipe/default-skin/default-skin.scss +1 -2
- data/app/assets/stylesheets/photoswipe/photoswipe.scss +2 -0
- data/lib/photoswipe-rails/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6dc5d42aefe356c69a820873819f8ab97b87a2f0
|
4
|
+
data.tar.gz: 57d58f517d51e5ff19731ae1e66eb5a52713b806
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72aad2eda23f62eb57a3cf239cdb09d85a101b7f12dadbf844cf3fc734ca98ec79362ba15373ef1b7d347984a7273d1a12998c37ff372e378f8b81479da59cfc
|
7
|
+
data.tar.gz: 5fd8a95f837d528f19dc30024c5e41fa065a6db06dfcd54b128038516df706183bfee07ad4c3844149c917404e38e1c4ee27173b1c8d777a665411e3a3c950dc
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
/*! PhotoSwipe Default UI - 4.1.
|
1
|
+
/*! PhotoSwipe Default UI - 4.1.2 - 2017-04-05
|
2
2
|
* http://photoswipe.com
|
3
|
-
* Copyright (c)
|
3
|
+
* Copyright (c) 2017 Dmitry Semenov; */
|
4
4
|
/**
|
5
5
|
*
|
6
6
|
* UI on top of main sliding area (caption, arrows, close button, etc.).
|
@@ -1,6 +1,6 @@
|
|
1
|
-
/*! PhotoSwipe - v4.1.
|
1
|
+
/*! PhotoSwipe - v4.1.2 - 2017-04-05
|
2
2
|
* http://photoswipe.com
|
3
|
-
* Copyright (c)
|
3
|
+
* Copyright (c) 2017 Dmitry Semenov; */
|
4
4
|
(function (root, factory) {
|
5
5
|
if (typeof define === 'function' && define.amd) {
|
6
6
|
define(factory);
|
@@ -397,6 +397,8 @@ var _isOpen,
|
|
397
397
|
_features,
|
398
398
|
_windowVisibleSize = {},
|
399
399
|
_renderMaxResolution = false,
|
400
|
+
_orientationChangeTimeout,
|
401
|
+
|
400
402
|
|
401
403
|
// Registers PhotoSWipe module (History, Controller ...)
|
402
404
|
_registerModule = function(name, module) {
|
@@ -544,13 +546,13 @@ var _isOpen,
|
|
544
546
|
framework.bind(document, 'mousemove', _onFirstMouseMove);
|
545
547
|
}
|
546
548
|
|
547
|
-
framework.bind(window, 'resize scroll', self);
|
549
|
+
framework.bind(window, 'resize scroll orientationchange', self);
|
548
550
|
|
549
551
|
_shout('bindEvents');
|
550
552
|
},
|
551
553
|
|
552
554
|
_unbindEvents = function() {
|
553
|
-
framework.unbind(window, 'resize', self);
|
555
|
+
framework.unbind(window, 'resize scroll orientationchange', self);
|
554
556
|
framework.unbind(window, 'scroll', _globalEventHandlers.scroll);
|
555
557
|
framework.unbind(document, 'keydown', self);
|
556
558
|
framework.unbind(document, 'mousemove', _onFirstMouseMove);
|
@@ -563,6 +565,8 @@ var _isOpen,
|
|
563
565
|
framework.unbind(window, _upMoveEvents, self);
|
564
566
|
}
|
565
567
|
|
568
|
+
clearTimeout(_orientationChangeTimeout);
|
569
|
+
|
566
570
|
_shout('unbindEvents');
|
567
571
|
},
|
568
572
|
|
@@ -841,6 +845,18 @@ var publicMethods = {
|
|
841
845
|
// Setup global events
|
842
846
|
_globalEventHandlers = {
|
843
847
|
resize: self.updateSize,
|
848
|
+
|
849
|
+
// Fixes: iOS 10.3 resize event
|
850
|
+
// does not update scrollWrap.clientWidth instantly after resize
|
851
|
+
// https://github.com/dimsemenov/PhotoSwipe/issues/1315
|
852
|
+
orientationchange: function() {
|
853
|
+
clearTimeout(_orientationChangeTimeout);
|
854
|
+
_orientationChangeTimeout = setTimeout(function() {
|
855
|
+
if(_viewportSize.x !== self.scrollWrap.clientWidth) {
|
856
|
+
self.updateSize();
|
857
|
+
}
|
858
|
+
}, 500);
|
859
|
+
},
|
844
860
|
scroll: _updatePageScrollOffset,
|
845
861
|
keydown: _onKeyDown,
|
846
862
|
click: _onGlobalClick
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: photoswipe-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.1.
|
4
|
+
version: 4.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kristaps Karlsons
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2017-04-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
82
|
version: '0'
|
83
83
|
requirements: []
|
84
84
|
rubyforge_project:
|
85
|
-
rubygems_version: 2.4
|
85
|
+
rubygems_version: 2.6.4
|
86
86
|
signing_key:
|
87
87
|
specification_version: 4
|
88
88
|
summary: Adds PhotoSwipe to your Rails asset pipeline
|