fix(img): ensure scroll has been initialized

This commit is contained in:
Adam Bradley
2016-12-07 15:59:20 -06:00
parent aec8f51b60
commit 39e1dce72d
4 changed files with 9 additions and 6 deletions

View File

@@ -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);
}
}