Skip to content

Commit 823e9c2

Browse files
olzzonjstarpl
authored andcommitted
fix: eventlistener on segmentBlock wasn't cleaned up
1 parent d89b35e commit 823e9c2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/webui/src/client/ui/SegmentTimeline/SegmentTimeline.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,9 @@ export class SegmentTimelineClass extends React.Component<Translated<WithTiming<
290290
componentWillUnmount(): void {
291291
super.componentWillUnmount && super.componentWillUnmount()
292292
clearTimeout(this.highlightTimeout)
293+
if (this.segmentBlock) {
294+
this.segmentBlock.removeEventListener('wheel', this.onTimelineWheel, { capture: true })
295+
}
293296

294297
RundownViewEventBus.off(RundownViewEvents.HIGHLIGHT, this.onHighlight)
295298
RundownViewEventBus.off(RundownViewEvents.SEGMENT_ZOOM_ON, this.onRundownEventSegmentZoomOn)

0 commit comments

Comments
 (0)