fix: shrink control range boundary error #305

This commit is contained in:
Hufe921
2023-11-04 10:22:23 +08:00
parent e10e35b0a3
commit a9fc226a39
+1
View File
@@ -416,6 +416,7 @@ export class RangeManager {
const elementList = this.draw.getElementList()
const range = this.getRange()
const { startIndex, endIndex } = range
if (!~startIndex && !~endIndex) return
const startElement = elementList[startIndex]
const endElement = elementList[endIndex]
if (startIndex === endIndex) {