Browse Source

Swipe not working correctly

Tobias Reich 11 years ago
parent
commit
10ad35877e
2 changed files with 4 additions and 3 deletions
  1. 0 0
      assets/build/main.js
  2. 4 3
      assets/js/init.js

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


+ 4 - 3
assets/js/init.js

@@ -104,9 +104,10 @@ $(document).ready(function(){
 	/* Fullscreen on mobile */
 	if (mobileBrowser()) {
 		$(document).on("touchend", "#image", function(e) {
-			if (swipe.obj!==null&&(swipe.offset<=-5||swipe.offset>=5)) return false;
-			if (visible.controls()) view.header.hide(e, 0);
-			else view.header.show();
+			if (swipe.obj===null||(swipe.offset>=-5&&swipe.offset<=5)) {
+				if (visible.controls()) view.header.hide(e, 0);
+				else view.header.show();
+			}
 		});
 	}
 

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