Skip to content

Commit

Permalink
Multi select bug fix. (#1710)
Browse files Browse the repository at this point in the history
  • Loading branch information
turner authored Oct 10, 2023
1 parent 27008fe commit f6b6207
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion dev/multi-select/multi-select.html
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ <h1>Multiple Track Selection</h1>
]
}

igv.createBrowser(document.getElementById("igvDiv"), kitchenSinkConfig)
igv.createBrowser(document.getElementById("igvDiv"), config)
.then(function (browser) {
console.log("Created IGV browser");
})
Expand Down
3 changes: 2 additions & 1 deletion js/ui/multiTrackSelectButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ function setMultiTrackSelectionState(trackView, axis, doEnableMultiSelection) {
container.style.display = 'grid'
} else {

const trackSelectInput = container.querySelector('[name=track-select]')

if (trackView.dragHandle) {
setDragHandleSelectionState(trackView, trackView.dragHandle, trackSelectInput.checked)
}
Expand All @@ -63,7 +65,6 @@ function setMultiTrackSelectionState(trackView, axis, doEnableMultiSelection) {
trackView.track.autoscaleGroup = undefined
}

const trackSelectInput = container.querySelector('[name=track-select]')
trackSelectInput.checked = false

container.style.display = 'none'
Expand Down

0 comments on commit f6b6207

Please sign in to comment.