Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

Disable shutdown does not work on Ihone #2452

Closed
maxg5 opened this issue Apr 18, 2020 · 1 comment
Closed

Disable shutdown does not work on Ihone #2452

maxg5 opened this issue Apr 18, 2020 · 1 comment

Comments

@maxg5
Copy link

maxg5 commented Apr 18, 2020

How do I ...
On the site I use fancybox to create a wrapped communication form in a modal window.
You need to disable vertical swipe. Those. so that with vertical sweeping the modal window does not close.
My skrpit looks like this:
<script> $(document).ready(function() { $(".fancybox-inline").click(function() { $.fancybox.open({ closeBtn : false, src : '#contact_form_pop', type : 'inline', touch: { vertical: false } }); }) }); </script>
As a result, vertical sweeping is disabled everywhere except for the Iphone.
Tell me what could be the problem?

@fancyapps
Copy link
Owner

Hi, Vertical scrolling is a major issue of iOS Safari. It is now year 2021 and freshly released Safari 15 does not offer solution. Next-generation Fancybox has included some workarounds, but it still does not work perfectly. You could try to implement this solution - https://pqina.nl/blog/how-to-prevent-scrolling-the-page-on-ios-safari/ - but it might bring other issues.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants