Added e.preventDefault

This commit is contained in:
Tobias Reich 2014-03-25 15:19:49 +01:00
parent 28638d2163
commit 381a86c99d

View File

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