Commit 562e7fe9 authored by Alexandre Delanoë's avatar Alexandre Delanoë

Merge remote-tracking branch 'origin/393-dev-mouse-alignment-rc0.x' into dev-merge

parents 208bdfdf 8f6dfbec
......@@ -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