fix: shrink control range boundary error #305
This commit is contained in:
@@ -416,6 +416,7 @@ export class RangeManager {
|
|||||||
const elementList = this.draw.getElementList()
|
const elementList = this.draw.getElementList()
|
||||||
const range = this.getRange()
|
const range = this.getRange()
|
||||||
const { startIndex, endIndex } = range
|
const { startIndex, endIndex } = range
|
||||||
|
if (!~startIndex && !~endIndex) return
|
||||||
const startElement = elementList[startIndex]
|
const startElement = elementList[startIndex]
|
||||||
const endElement = elementList[endIndex]
|
const endElement = elementList[endIndex]
|
||||||
if (startIndex === endIndex) {
|
if (startIndex === endIndex) {
|
||||||
|
|||||||
Reference in New Issue
Block a user