Skip to content

virtual-scroll: memory leak in scroll listener #11114

Closed
@mmalerba

Description

@mmalerba

This is never unsubscribed

fromEvent(viewportEl, 'scroll')
            // Sample the scroll stream at every animation frame. This way if there are multiple
            // scroll events in the same frame we only need to recheck our layout once.
            .pipe(sampleTime(0, animationFrameScheduler))
            .subscribe(() => this._scrollStrategy.onContentScrolled());

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions