Local images flagged as already loaded to avoid flickering/slow-down (#10086)
This commit is contained in:
parent
1bccbd4173
commit
ff2bf1f3c1
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue