This commit is contained in:
Yueyu 2021-05-28 08:26:53 +08:00
parent cc7b6ee883
commit fa6bf47b35
3 changed files with 3 additions and 3 deletions

View file

@ -109,7 +109,7 @@ export default class Sprite {
var img = document.createElement('img');
img.ondragstart = function () {
return false;
}
};
img.src = dataurl;
this.img = img;
// Make a copy that is not affected by zoom transformation

View file

@ -200,7 +200,7 @@ export default class Library {
img.style.height = (data.height * scale) + 'px';
img.ondragstart = function () {
return false;
}
};
if (data.altmd5) {
IO.getAsset(data.altmd5, drawMe);
}

View file

@ -302,7 +302,7 @@ export default class Home {
}
img.ondragstart = function () {
return false;
}
};
function drawMe (url) {
img.src = url;
}