alongslide 0.9.11 → 0.9.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 542170c9eaf643945063831eba1c4197003157a2
4
- data.tar.gz: 97ff3fa6ea20d7292d3cbf2ad7c03cc82b72b01d
3
+ metadata.gz: 81bedfbe6a4be53c4c3b77a9fc68bdb443526dd1
4
+ data.tar.gz: 3a67268098454645e2b37e92d7c6ef237193b170
5
5
  SHA512:
6
- metadata.gz: d5df3c8d11284c544419845fee71be332c244b27432ad9e5aefe59e08902e91494140c5cf67c968d5d05de8c0e888e336866441c61c227fd1fc8a97639b2bffd
7
- data.tar.gz: da422b446b18f80f98a4b85127eb2e25ae925e32276fe02e929b957bb59ee1d8ff98666ce00d4ff1057904f98cbbd5d07fcaed6d65f6d9351fc2e63c290f9cce
6
+ metadata.gz: 7c1e5b7b90b7a61110c923a010083fef9b74b25e0f1e52576aa965af4aafed498ba64464c36b1e811c5f0903a3abc5f9e3804b1ee3a0383b8ca0a63d89297c3f
7
+ data.tar.gz: b13491a63c7c6368d17eeb733d52f4f437bc2287c2f50843eb169e4c78a4b796f3059f8f114d2dea30c1d7ad16394838ba49b5641cb214387fe2ce13269fbb0c
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = 'alongslide'
3
- gem.version = '0.9.11'
3
+ gem.version = '0.9.12'
4
4
 
5
5
  gem.summary = "Create dynamic web layouts with an extended Markdown syntax"
6
6
  gem.description = "Create dynamic web layouts with an extended Markdown syntax"
@@ -722,7 +722,7 @@
722
722
  var deltaTime;
723
723
 
724
724
  _addEvent(documentElement, [EVENT_TOUCHSTART, EVENT_TOUCHMOVE, EVENT_TOUCHCANCEL, EVENT_TOUCHEND].join(' '), function(e) {
725
- // e.preventDefault();
725
+ e.preventDefault();
726
726
 
727
727
  var touch = e.changedTouches[0];
728
728
 
@@ -750,18 +750,12 @@
750
750
  deltaX = currentTouchX - lastTouchX;
751
751
  deltaTime = currentTouchTime - lastTouchTime;
752
752
 
753
- // Allow horizontal scroll on overflowing elements
754
- if (Math.abs(deltaX) < Math.abs(deltaY)) {
755
- return;
756
- } else {
757
- var position = _mobileOffset - (!_scrollHorizontal ? deltaY : deltaX);
758
- _instance.setScrollPosition(position, true);
759
-
760
- lastTouchY = currentTouchY;
761
- lastTouchX = currentTouchX;
762
- lastTouchTime = currentTouchTime;
763
- }
753
+ var position = _mobileOffset - (!_scrollHorizontal ? deltaY : deltaX);
754
+ _instance.setScrollPosition(position, true);
764
755
 
756
+ lastTouchY = currentTouchY;
757
+ lastTouchX = currentTouchX;
758
+ lastTouchTime = currentTouchTime;
765
759
  break;
766
760
  default:
767
761
  case EVENT_TOUCHCANCEL:
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alongslide
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.11
4
+ version: 0.9.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Florin