Fix:修复开启性能模式后拖动滚动条报错的问题

This commit is contained in:
街角小林 2024-07-26 15:51:30 +08:00
parent 9a64094f14
commit 4894d9e6e6

View File

@ -780,10 +780,12 @@ class Node {
this.renderLine() this.renderLine()
const { openPerformance, performanceConfig } = this.mindMap.opt const { openPerformance, performanceConfig } = this.mindMap.opt
// 强制渲染、或没有开启性能模式、或不在画布可视区域内不渲染节点内容 // 强制渲染、或没有开启性能模式、或不在画布可视区域内不渲染节点内容
// 根节点不进行懒加载,始终渲染,因为滚动条插件依赖根节点进行计算
if ( if (
forceRender || forceRender ||
!openPerformance || !openPerformance ||
this.checkIsInClient(performanceConfig.padding) this.checkIsInClient(performanceConfig.padding) ||
this.isRoot
) { ) {
if (!this.group) { if (!this.group) {
// 创建组 // 创建组