Density display issue
Closed this issue · 2 comments
Density appears when we click/select an atom. If we click on the same atom again then density disappears and keeps on toggling on selection.
This is intended behavior caused by the 'UnselectElementOnRepeatedClick' behaviour.
If you remove it from the plugin spec, this should no longer occur. However, there might be some other functionality in your case that relies on this (but maybe not).
Alternatively, it might be possible to add "Show Always" toggle for the density streaming behaviour which would keep the density shown for the latest active selection.
For a quick fix, you might try to remove this line https://github.com/dsehnal/LiteMol/blob/master/src/Viewer/Extensions/DensityStreaming/Behaviour.ts#L294 and the density should stay always on.
Aha! Got it. Quick fix did the trick.