Skip to content

Commit

Permalink
Try to fix f-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tsv2013 committed Sep 11, 2024
1 parent b55e0ed commit 1bfa425
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/layoutEngine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,13 @@ export class MuuriLayoutEngine extends LayoutEngine {
this._muuri = undefined;
}
protected updateCore() {
if(!this._muuri) return;
if (this._layoutingTimer !== undefined) {
clearTimeout(this._layoutingTimer);
}
this._layoutingTimer = setTimeout(() => {
this._layoutingTimer = undefined;
if(!this._muuri) return;
this._muuri.refreshItems();
this._muuri.layout();
}, 10);
Expand Down

0 comments on commit 1bfa425

Please sign in to comment.