Swipe not working correctly
This commit is contained in:
parent
47d2e83a6c
commit
10ad35877e
File diff suppressed because one or more lines are too long
@ -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();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user