I am trying to make a fancybox only can close by close button. I have looked the fancyBox3 documentation but still no idea. The fancybox default setting only can prevent mouse click outside close and mouse touch close. Even the touch setting set to false, swipe up or click overlay area close problem still happen on mobile view.
I have a sample script to show the fancybox.
HTML
<div id="fancybox" style="display:none;">
<img src="https://farm6.staticflickr.com/5519/9432166677_61aa7e7f90_m_d.jpg">
</div>
JS
$(document).ready(function() {
$.fancybox.open({
src: "#fancybox",
type: "inline",
clickSlide : 'false',
clickOutside : 'false',
touch: false
});
});
Any idea to prevent mobile swipe up close? Thanks!