Skip to content

Commit 3818b11

Browse files
authored
fix: pane groups incompletely reset after scroll (#104)
Closes #95
1 parent 3564464 commit 3818b11

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/ScrollSync.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,10 @@ export default class ScrollSync extends Component {
129129
this.syncScrollPosition(scrolledPane, pane)
130130
/* Re-attach event listeners after we're done scrolling */
131131
window.requestAnimationFrame(() => {
132-
this.addEvents(pane, groups)
132+
const paneGroups = Object.keys(this.panes).filter((group) =>
133+
this.panes[group].includes(pane)
134+
)
135+
this.addEvents(pane, paneGroups)
133136
})
134137
}
135138
})

0 commit comments

Comments
 (0)