动态切换图片
Closed this issue · 3 comments
zhaoxuefei-ai commented
在有框选区域时,动态切换图片后,点击切换后的图片上的框选区域会跳到上一张图片,再次点击会又跳回去
zhaoxuefei-ai commented
index.ts 文件 287行 改成这样
if (x < 0 || x > w || y < 0 || y > h) return this.update();
heylight commented
index.ts 文件 287行 改成这样 if (x < 0 || x > w || y < 0 || y > h) return this.update();
已优化
heylight commented
在有框选区域时,动态切换图片后,点击切换后的图片上的框选区域会跳到上一张图片,再次点击会又跳回去
新版已修复,请使用setImage方法切换图片