|
|
@ -28,13 +28,13 @@ |
|
|
|
return document.querySelector(modalToggle.hash); |
|
|
|
return document.querySelector(modalToggle.hash); |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
var dragging = false; |
|
|
|
var dragging = false; |
|
|
|
|
|
|
|
|
|
|
|
window.addEventListener('touchmove', function () { |
|
|
|
window.addEventListener('touchmove', function () { |
|
|
|
dragging = true; |
|
|
|
dragging = true; |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
window.addEventListener('touchstart', function () { |
|
|
|
window.addEventListener('touchstart', function () { |
|
|
|
dragging = false; |
|
|
|
dragging = false; |
|
|
|
}); |
|
|
|
}); |
|
|
@ -43,7 +43,7 @@ |
|
|
|
if (dragging) { |
|
|
|
if (dragging) { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var modal = getModal(event); |
|
|
|
var modal = getModal(event); |
|
|
|
if (modal) { |
|
|
|
if (modal) { |
|
|
|
if (modal && modal.classList.contains('modal')) { |
|
|
|
if (modal && modal.classList.contains('modal')) { |
|
|
|