什么可能阻止iOS用户保存图像?

问题描述 投票:0回答:1

我目前正在使用名为Simple Lightbox的灯箱插件,我遇到了一些问题。右键单击>另存为Chrome上未禁用,但在灯箱中按住图像不会导致选择将其保存在iOS设备上。我想知道是否有任何javascript或css属性,我可以在代码中查找,可能会阻止此操作发生。

简单的灯箱:http://simplelightbox.com/

github链接:https://github.com/andreknieriem/simplelightbox

magnific-popup
1个回答
0
投票

好吧,我终于在发布后找到了答案!我会留在这里以防万一有人偶然发现这件事。

在simple-lightbox.js上的// touchcontrols中,我删除了以下内容:

> `swipeStart    = 0,
                swipeEnd     = 0,
                swipeYStart = 0,
                swipeYEnd = 0,
                mousedown = false,

我也禁用了滑动以更改照片。我希望以后可以帮助别人!

© www.soinside.com 2019 - 2024. All rights reserved.