diff --git a/packages/editor/src/lib/editor/Editor.ts b/packages/editor/src/lib/editor/Editor.ts index 6a4609c6d..b44d275b9 100644 --- a/packages/editor/src/lib/editor/Editor.ts +++ b/packages/editor/src/lib/editor/Editor.ts @@ -4232,7 +4232,8 @@ export class Editor extends EventEmitter { const { selectedShapeIds } = this return this.currentPageShapesSorted .filter((shape) => shape.type !== 'group' && selectedShapeIds.includes(shape.id)) - .findLast((shape) => this.isPointInShape(shape, point, { hitInside: true, margin: 0 })) + .reverse() // findlast + .find((shape) => this.isPointInShape(shape, point, { hitInside: true, margin: 0 })) } /**