Swipe not working correctly

This commit is contained in:
Tobias Reich 2014-03-26 23:59:54 +01:00
parent 47d2e83a6c
commit 10ad35877e
2 changed files with 5 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@ -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();
}
});
}