Skip to content
Discussion options

You must be logged in to vote

Here is an example of making a plugin that effectively disables side scroll and zoom by nullifying the scrollTo and zoomTo actions https://github.com/GMOD/jbrowse-components/pull/4982/files#diff-387aa0fba3ffb3e9a8959746c1b43a3765ddb88dd8777a197595cfff51ff2b04R15-R32

Pros:

  • no more side scroll, zoom, navigation, etc

Cons:

  • there are still zoom and scroll buttons but they don't do anything in the UI after this
  • any code you write to try to dynamically re-navigate jbrowse could be harmed by that solution. you could potentially make it work still ...e.g. try to make it only call the proper scrollTo/zoomTo when you toggle a global variable on and off but it's a challenge to overcome

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@cmdcolin
Comment options

@daviddamilola
Comment options

@tanyastead
Comment options

@cmdcolin
Comment options

Answer selected by daviddamilola
@cmdcolin
Comment options

@daviddamilola
Comment options

@tanyastead
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants