Added e.preventDefault
This commit is contained in:
parent
28638d2163
commit
381a86c99d
@ -379,9 +379,14 @@ view = {
|
||||
|
||||
// Fullscreen on mobile
|
||||
if (mobileBrowser()) {
|
||||
$(document).on("touchend", "#image", function() {
|
||||
if (visible.controls()) view.header.hide(null, 0);
|
||||
else view.header.show();
|
||||
$(document).on("touchend", "#image", function(e) {
|
||||
if (visible.controls()) {
|
||||
view.header.hide(e, 0);
|
||||
e.preventDefault();
|
||||
} else {
|
||||
view.header.show();
|
||||
e.preventDefault();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user