mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(img): ensure scroll has been initialized
This commit is contained in:
@@ -777,7 +777,7 @@ export class Content extends Ion implements OnDestroy, OnInit {
|
||||
* @private
|
||||
*/
|
||||
imgsUpdate() {
|
||||
if (this._imgs.length && this.isImgsUpdatable()) {
|
||||
if (this._scroll.initialized && this._imgs.length && this.isImgsUpdatable()) {
|
||||
updateImgs(this._imgs, this.scrollTop, this.scrollHeight, this.directionY, IMG_REQUESTABLE_BUFFER, IMG_RENDERABLE_BUFFER);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user