skrollr-rails 0.6.14 → 0.6.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/skrollr-rails/version.rb +1 -1
- data/vendor/assets/javascripts/skrollr.js +16 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2506acbc1d652c7ccd09d60e02553493e2871d7d
|
4
|
+
data.tar.gz: 755b5e86c6efbb0b30e6366cd2711ef3de0b2270
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8fa5312f5dbcc521b2c880fdee4fa724227e3033a0d19fa2e6a4e5cada8e3e8137c4e509868ca81bc5fa9f8397ff8a0777203e04c03890e538a5d93563f0ff19
|
7
|
+
data.tar.gz: 036128af38adae715c27478f9dbc63d09402215eff22d393c450c8ce68338c0713aa15d0cc7f082bdf7a988e90b267b3d2ade34097821cb52713f1b176e0d1b3
|
@@ -19,7 +19,7 @@
|
|
19
19
|
init: function(options) {
|
20
20
|
return _instance || new Skrollr(options);
|
21
21
|
},
|
22
|
-
VERSION: '0.6.
|
22
|
+
VERSION: '0.6.15'
|
23
23
|
};
|
24
24
|
|
25
25
|
//Minify optimization.
|
@@ -600,6 +600,10 @@
|
|
600
600
|
}
|
601
601
|
};
|
602
602
|
|
603
|
+
Skrollr.prototype.getMaxScrollTop = function() {
|
604
|
+
return _maxKeyFrame;
|
605
|
+
};
|
606
|
+
|
603
607
|
Skrollr.prototype.on = function(name, fn) {
|
604
608
|
_listeners[name] = fn;
|
605
609
|
|
@@ -695,6 +699,12 @@
|
|
695
699
|
_instance.stopAnimateTo();
|
696
700
|
|
697
701
|
initialElement = e.target;
|
702
|
+
|
703
|
+
//We don't want text nodes.
|
704
|
+
while(initialElement.nodeType === 3) {
|
705
|
+
initialElement = initialElement.parentNode;
|
706
|
+
}
|
707
|
+
|
698
708
|
initialTouchY = lastTouchY = currentTouchY;
|
699
709
|
initialTouchX = currentTouchX;
|
700
710
|
initialTouchTime = currentTouchTime;
|
@@ -718,9 +728,12 @@
|
|
718
728
|
|
719
729
|
//Check if it was more like a tap (moved less than 7px).
|
720
730
|
if(distance2 < 49) {
|
721
|
-
//It was a tap, click the element.
|
722
731
|
initialElement.focus();
|
723
|
-
|
732
|
+
|
733
|
+
//It was a tap, click the element.
|
734
|
+
var clickEvent = document.createEvent('MouseEvent');
|
735
|
+
clickEvent.initEvent('click', true, true);
|
736
|
+
initialElement.dispatchEvent(clickEvent);
|
724
737
|
|
725
738
|
return;
|
726
739
|
}
|