added not preload check so hidden toggles asap

This commit is contained in:
ValD 2018-12-13 00:11:01 +05:30
parent 7c6c2cfb22
commit b271957b4c
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ const Attachment = {
}
},
toggleHidden () {
if (this.img) {
if (this.img && !this.preloadImage) {
if (this.img.onload) {
this.img.onload()
} else {