Skip to main content

ScrollLock

Attempts to improve UX on mobile devices:

  • Scales the Fancybox container to fit the screen size to avoid situations where the dialog box is only partially visible due to the zoomed page.
  • Disables the touch action to prevent the page body from scrolling when user touches the screen.

This plugin is enabled by default. Example of how to disable it:

Fancybox.defaults.ScrollLock = false;