Only init swiping when eventName is 'touchend'
This commit is contained in:
parent
6118ad5c4a
commit
cb88c90cbd
@ -76,13 +76,13 @@ $(document).ready(function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
if ('ontouchend' in document.documentElement) {
|
if (eventName==='touchend') {
|
||||||
|
|
||||||
$(document)
|
$(document)
|
||||||
|
|
||||||
/* Fullscreen on mobile */
|
/* Fullscreen on mobile */
|
||||||
.on('touchend', '#image', function(e) {
|
.on('touchend', '#image', function(e) {
|
||||||
if (swipe.obj===null||(swipe.offset>=-5&&swipe.offset<=5)) {
|
if (swipe.obj==null||(swipe.offset>=-5&&swipe.offset<=5)) {
|
||||||
if (visible.header()) header.hide(e, 0);
|
if (visible.header()) header.hide(e, 0);
|
||||||
else header.show();
|
else header.show();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user