Commit 8f6dfbec authored by arturo's avatar arturo

[graph] mouse explorer misalignment

* #393
parent 9de858ae
Pipeline #2790 failed with stage
in 0 seconds
......@@ -158,8 +158,13 @@ let sigmaMouseSelector = (sigma, options) => {
};
};
_offset = calculateOffset(renderer.container);
// Container resize event listener
// @TODO: debounce?
const onContainerResize = (entries) => {
_offset = calculateOffset(_container);
};
const _resizeObserver = new ResizeObserver( onContainerResize );
_resizeObserver.observe(_container);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment