Skip to content

Commit

Permalink
Add ability to remove click when collapsed also
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Feb 16, 2018
1 parent 8ff1083 commit e0fe800
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/JBrowse/View/Track/CanvasFeatures.js
Expand Up @@ -118,6 +118,8 @@ return declare(
{
maxFeatureScreenDensity: 0.5,
removeCollapsedMouseover: true,
removeCollapsedClick: false,


// default glyph class to use
glyph: lang.hitch( this, 'guessGlyphType' ),
Expand Down Expand Up @@ -705,9 +707,10 @@ return declare(
}

this._attachMouseOverEvents( );

// connect up the event handlers
this._connectEventHandlers( block );
if( this.displayMode != 'collapsed' || !this.config.removeCollapsedClick ) {
// connect up the event handlers
this._connectEventHandlers( block );
}

this.updateStaticElements( { x: this.browser.view.getX() } );
},
Expand Down

0 comments on commit e0fe800

Please sign in to comment.