javascript - Krpano 场景缩略图在 chrome 版本 87 之后不再可拖动
问题描述
在 chrome 版本 87.0.4273.0(开发人员构建)(64 位)之后,sceneThumb 上可拖动的 Jquuery Ui 不再工作,但代码在最新版本的 firfox 上工作正常。
<action name="set_css_class" type="Javascript">
caller.sprite.className = args[1];
</action>
set(layer[get(thumbname)],
url=get(scene[get(i)].thumburl),
keep=true,
parent='skin_thumbs',
align='lefttop',
crop=get(thumbcrop),
width=get(thumbwidth),
height=get(thumbheight),
x=calc(thumbpadding + i*thumbxoffset),
y=get(thumbpadding),
linkedscene=get(scene[get(i)].name),
onclick='copy(layer[skin_thumbborder].parent, name);
skin_loadscene(get(linkedscene),get(skin_settings.loadscene_blend));',
onloaded="set_css_class('sceneThumb');"
);
在 xml 文件中,这一行onloaded="set_css_class('sceneThumb');
指定类名“sceneThumb”
$('.sceneThumb').draggable({
helper: "clone",
revert: false,
start: function(event, ui) {
console.log("Start sceneThumb");
...
}
而在 html 页面中,“scenThumb”类被称为可拖动功能。
但是,chrome 无法识别此功能,当我尝试拖动它时,没有任何效果,并且控制台也没有打印出任何内容。
谁能帮我?提前致谢。
解决方案
推荐阅读
- javascript - 如何将数据发布为 html 格式的文本
- python - 对质心进行分组并绘制一个矩形
- ruby-on-rails - 更改索引页面中的过滤谓词顺序 - ActiveAdmin
- macos - 无法在 macOS 上删除文件夹 - 目录不为空
- r - 提取从字符串开头到某个单词第一次出现的玩家姓名
- 3d - Blender 从流体模拟中渲染 FLIP Particles
- javascript - 是否有一种稳定的方法可以从 html id 值设置 echarts 轴限制
- c++ - 在什么意义上 const 只允许对可变成员变量进行原子更改?
- c - linux服务器上的编译错误(C项目)
- soundcloud - Soundcloud 用户收藏夹端点已删除?