Open Issues Need Help
View All on GitHub 设置container的scrollLeft和scrollTop,让居中方法更健壮 about 2 months ago
AI Summary: The mind map's centering method becomes inaccurate when the container has scrolled, as it doesn't account for the container's `scrollLeft` and `scrollTop` values. This causes `offsetLeft` and `offsetTop` calculations to be incorrect relative to the content's true origin. The proposed solution is to reset `container.scrollLeft` and `container.scrollTop` to zero before performing centering calculations, ensuring consistent positioning.
Complexity:
2/5
documentation good first issue
⚗ Mind Elixir is a JavaScript, framework-agnostic mind map core.
TypeScript
#graph#mind-map#mind-mapping#mindmap#tool#visualization