Skip to content

Commit

Permalink
feat(core): remove tooltip information about the number of additional…
Browse files Browse the repository at this point in the history
… elements (#1080)
  • Loading branch information
sehilyi authored Jun 17, 2024
1 parent fc1441a commit bde823c
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/tracks/gosling-track/gosling-track.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1197,7 +1197,8 @@ const factory: PluginTrackFactory<Tile, GoslingTrackOptions> = (HGC, context, op
this.pMouseHover.clear();
}
/**
* From all tiles and overlaid tracks, collect element(s) that are withing a mouse position.
* From all tiles and overlaid tracks, collect element(s) that are within a mouse position.
* In the array, the first element is the element that is directly within the mouse position.
*/
#getElementsWithinMouse(mouseX: number, mouseY: number) {
const models = this.visibleAndFetchedGoslingModels();
Expand Down Expand Up @@ -1460,12 +1461,6 @@ const factory: PluginTrackFactory<Tile, GoslingTrackOptions> = (HGC, context, op
.join('');

content = `<table style='text-align: left; margin-top: 12px'>${content}</table>`;
if (capturedElements.length > 1) {
content +=
`<div style='padding: 4px 8px; margin-top: 4px; text-align: center; color: grey'>` +
`${capturedElements.length - 1} Additional Selections...` +
'</div>';
}
return `<div>${content}</div>`;
}
}
Expand Down

0 comments on commit bde823c

Please sign in to comment.