Skip to content

Commit

Permalink
Fixed almende#3249
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 Jul 12, 2017
1 parent ad4d84d commit d7c840e
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 d7c840e

Please sign in to comment.