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