VizTooltip: Hide on page scroll even if anchored (#91084)

This commit is contained in:
Leon Sorokin
2024-07-26 14:27:49 -05:00
committed by GitHub
parent 1503c82ae9
commit 90349b21f7

View File

@@ -580,7 +580,7 @@ export const TooltipPlugin2 = ({
const onscroll = (e: Event) => {
updatePlotVisible();
_isHovering && !_isPinned && e.target instanceof HTMLElement && e.target.contains(_plot!.root) && dismiss();
_isHovering && e.target instanceof HTMLElement && e.target.contains(_plot!.root) && dismiss();
};
window.addEventListener('resize', updateWinSize);