fix: bounding rect error in getRangeContext api

This commit is contained in:
Hufe921
2023-10-11 21:43:23 +08:00
parent c944872ae7
commit 06c3a337ae
+1 -1
View File
@@ -1840,13 +1840,13 @@ export class CommandAdapt {
currentX = leftTop[0]
} else {
rangeRect!.width = rightTop[0] - currentX
}
// 最后一个元素结束追加选区信息
if (p === selectionPositionList.length - 1 && rangeRect) {
rangeRects.push(rangeRect)
}
}
}
}
return deepClone({
isCollapsed,
startElement,