Browse Source

Fixed a swipe error

Tobias Reich 11 years ago
parent
commit
02e77b8aea
2 changed files with 1 additions and 1 deletions
  1. 1 1
      assets/js/swipe.js
  2. 0 0
      assets/min/main.js

+ 1 - 1
assets/js/swipe.js

@@ -44,7 +44,7 @@ swipe = {
 
 		if (e.x<=-swipe.tolerance) left(true);
 		else if (e.x>=swipe.tolerance) right(true);
-		else {
+		else if (swipe.obj!==null) {
 			console.log('reset');
 			swipe.obj.css({
 				WebkitTransform: 'translateX(0px)',

File diff suppressed because it is too large
+ 0 - 0
assets/min/main.js


Some files were not shown because too many files changed in this diff