Skip to content

Commit

Permalink
holding SHIFT while scrolling left and right now makes the view scrol…
Browse files Browse the repository at this point in the history
…l further
  • Loading branch information
rbuels committed Nov 2, 2012
1 parent 8ee7992 commit 11178c9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions release-notes.txt
Expand Up @@ -21,6 +21,9 @@
zoom in and out. If ALT is added, it zooms further. Thanks to
Karsten Hokamp for the excellent suggestion.

* Holding SHIFT while scrolling with the arrow keys causes the view
to scroll further.

* Added a `theme` configuration variable to allow changing the
graphical theme to something different from the default "tundra".
However, no other themes are implemented yet.
Expand Down
4 changes: 4 additions & 0 deletions src/JBrowse/GenomeView.js
Expand Up @@ -420,7 +420,11 @@ GenomeView.prototype._behaviors = function() { return {

var that = this;
if( evt.keyCode == dojo.keys.LEFT_ARROW || evt.keyCode == dojo.keys.RIGHT_ARROW ) {

var offset = evt.keyCode == dojo.keys.LEFT_ARROW ? -40 : 40;
if( evt.shiftKey )
offset *= 5;

this.setX( this.getX() + offset );
if( ! this._keySlideTimeout )
this._keySlideTimeout = window.setTimeout(function() {
Expand Down

0 comments on commit 11178c9

Please sign in to comment.