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