gosling-lang / gosling.js

Grammar of Scalable Linked Interactive Nucleotide Graphics
https://gosling.js.org
MIT License
166 stars 27 forks source link

Click on track to move brush to clicked position #889

Open ThHarbig opened 1 year ago

ThHarbig commented 1 year ago

It would be nice to support the behavior of IslandViewer where the position of the brush can be changed by clicking on the underlying track. Might be problematic though when multiple brushes are used in the same view.

sehilyi commented 1 year ago

I just found JBrowse 2 also supports similar interaction, i.e., clicking on a specific region of an ideogram (red rect) moves to that region in the linear view. Something that we can create as an example.

https://jbrowse.org/code/jb2/v2.5.0/?session=local-ncKjccLPu

Screenshot 2023-05-10 at 11 23 21