Skip to content
This repository has been archived by the owner on Jul 29, 2019. It is now read-only.

Commit

Permalink
Fixed #3249 (#3250)
Browse files Browse the repository at this point in the history
Only draw non-visible items once when they are loaded, instead of continuously every frame
  • Loading branch information
YoshiWalsh authored and yotamberk committed Jul 26, 2017
1 parent 6b191f8 commit 080b0f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/timeline/component/Group.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 080b0f6

Please sign in to comment.