When creating a viewergrid with py3Dmol and adding a hover callback that displays a label, the label is incorrectly placed in multiple ways: it appears in the wrong position relative to the cursor (i.e. it gets triggered by the wrong atom), and can appear on the wrong viewer.
When specifying a viewer in setHoverable, the callback label should only appear on that specific viewer and affect the atom being hovered.
When no viewer is specified, I'd say that's most likely an error
Screenshots
Here I'm hovering one of the atoms of the grey benzene but the label appears on the cyan.
Desktop (please complete the following information):
Describe the bug
When creating a viewergrid with py3Dmol and adding a hover callback that displays a label, the label is incorrectly placed in multiple ways: it appears in the wrong position relative to the cursor (i.e. it gets triggered by the wrong atom), and can appear on the wrong viewer.
To Reproduce
Expected behavior
When specifying a viewer in
setHoverable
, the callback label should only appear on that specific viewer and affect the atom being hovered. When no viewer is specified, I'd say that's most likely an errorScreenshots
Here I'm hovering one of the atoms of the grey benzene but the label appears on the cyan.
Desktop (please complete the following information):
py3Dmol==2.0.3