Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion packages/component-base/src/virtualizer-iron-list-adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@
FIX_INVALID_ITEM_POSITIONING: 100,
};

this.__resizeObserver = new ResizeObserver(() => this._resizeHandler());
// Use requestAnimationFrame to avoid performance issues with Safari
this.__resizeObserver = new ResizeObserver(() => {
const ironListAdapter = this;

Check failure on line 56 in packages/component-base/src/virtualizer-iron-list-adapter.js

View workflow job for this annotation

GitHub Actions / Lint

Unexpected aliasing of 'this' to local variable

Check failure on line 56 in packages/component-base/src/virtualizer-iron-list-adapter.js

View workflow job for this annotation

GitHub Actions / Lint

Unexpected alias 'ironListAdapter' for 'this'
requestAnimationFrame(() => ironListAdapter._resizeHandler());
});

if (getComputedStyle(this.scrollTarget).overflow === 'visible') {
this.scrollTarget.style.overflow = 'auto';
Expand Down
Loading