Lattice-Automation / seqviz

a JavaScript DNA, RNA, and protein sequence viewer
https://tools.latticeautomation.com/seqviz
MIT License
246 stars 53 forks source link

Scroll linear view to selection passed in props #252

Closed guzmanvig closed 10 months ago

guzmanvig commented 10 months ago

Summary of the feature idea

When selection is used, it might be out of view in the linear view. Would be nice that the linear view automatically scrolls to it.

We actually have a use case for this in one of our projects where we have a list of subsequence indices, which are clickable. Clicking on them right now selects them on Seqviz, but some times they are out of view.

Description of the ideal solution

The linear view automatically scrolls to the selection start.

guzmanvig commented 10 months ago

Addressed in https://github.com/Lattice-Automation/seqviz/releases/tag/3.10.3