GMOD / jbrowse-components

Source code for JBrowse 2, a modern React-based genome browser
https://jbrowse.org/jb2
Apache License 2.0
208 stars 62 forks source link

Fix highlight button causing issues clicking underlying track features #4594

Closed cmdcolin closed 1 month ago

cmdcolin commented 1 month ago

The bookmark highlights added a clickable button to "show bookmark widget" or "remove bookmark" recently (#4556), but it caused some minor issues interacting with the track surrounding the highlight.

The possible cause was creating a pointerEvents:auto inside of a pointerEvents:none div. This seemed to work ok but maybe caused the weird behavior.

This PR tries to fix it by making the click button a separate div from the highlight div, so there is less reliance on this "stacking" of pointerEvents contexts.

Fixes https://github.com/GMOD/jbrowse-components/issues/4579