Skip to content

Commit

Permalink
Update src/SeqViewerContainer.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: Joshua Timmons <[email protected]>
  • Loading branch information
guzmanvig and jjti authored Feb 14, 2024
1 parent 6f8a4db commit 38b9f7d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/SeqViewerContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ class SeqViewerContainer extends React.Component<SeqViewerContainerProps, SeqVie

// If the selection prop updates, also scroll the linear view to the new selection
componentDidUpdate = (prevProps: SeqViewerContainerProps) => {
// Only scroll if the selection was done programatically
// Only scroll if the selection was done passed in as a prop by a user of SeqViz. Otherwise the selection was
// made by the user clicking an element or selecting a range of sequences
if (this.selectionIsProgramatic(this.props.selection)) {
if (
this.props.selection?.start !== prevProps.selection?.start &&
Expand Down

0 comments on commit 38b9f7d

Please sign in to comment.