see https://github.com/fancyapps/fancyBox/issues/569 for more information.

Doesn't fix everything but enough for images.