Local images flagged as already loaded to avoid flickering/slow-down (#10086)

This commit is contained in:
smonesi 2021-09-30 10:14:08 +02:00 committed by GitHub
parent 1bccbd4173
commit ff2bf1f3c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -122,6 +122,9 @@ export class HuiImage extends LitElement {
? parseAspectRatio(this.aspectRatio)
: null;
}
if (this._loadState === LoadState.Loading && !this.cameraImage) {
this._loadState = LoadState.Loaded;
}
}
protected render(): TemplateResult {