From 080b0f661e456fd320f215071a3a1191f09daba6 Mon Sep 17 00:00:00 2001 From: Joshua Walsh Date: Wed, 26 Jul 2017 23:22:28 +1000 Subject: [PATCH] Fixed #3249 (#3250) Only draw non-visible items once when they are loaded, instead of continuously every frame --- lib/timeline/component/Group.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/timeline/component/Group.js b/lib/timeline/component/Group.js index 79ccf60d..2f357e3b 100644 --- a/lib/timeline/component/Group.js +++ b/lib/timeline/component/Group.js @@ -257,7 +257,7 @@ Group.prototype.redraw = function(range, margin, forceRestack) { var me = this; var limitSize = false; util.forEach(this.items, function (item) { - if (!item.displayed) { + if (!item.dom) { // If this item has never been displayed then the dom property will not be defined, this means we need to measure the size item.redraw(); me.visibleItems.push(item); }