Compare commits
1 Commits
master
...
aakansha-f
Author | SHA1 | Date | |
---|---|---|---|
|
fc2cf8e708 |
@ -2164,14 +2164,13 @@ class App extends React.Component<AppProps, AppState> {
|
|||||||
of all hit elements */
|
of all hit elements */
|
||||||
preferSelected?: boolean;
|
preferSelected?: boolean;
|
||||||
includeBoundTextElement?: boolean;
|
includeBoundTextElement?: boolean;
|
||||||
includeLockedElements?: boolean;
|
|
||||||
},
|
},
|
||||||
): NonDeleted<ExcalidrawElement> | null {
|
): NonDeleted<ExcalidrawElement> | null {
|
||||||
const allHitElements = this.getElementsAtPosition(
|
const allHitElements = this.getElementsAtPosition(
|
||||||
x,
|
x,
|
||||||
y,
|
y,
|
||||||
opts?.includeBoundTextElement,
|
opts?.includeBoundTextElement,
|
||||||
opts?.includeLockedElements,
|
true,
|
||||||
);
|
);
|
||||||
if (allHitElements.length > 1) {
|
if (allHitElements.length > 1) {
|
||||||
if (opts?.preferSelected) {
|
if (opts?.preferSelected) {
|
||||||
@ -5361,7 +5360,6 @@ class App extends React.Component<AppProps, AppState> {
|
|||||||
const { x, y } = viewportCoordsToSceneCoords(event, this.state);
|
const { x, y } = viewportCoordsToSceneCoords(event, this.state);
|
||||||
const element = this.getElementAtPosition(x, y, {
|
const element = this.getElementAtPosition(x, y, {
|
||||||
preferSelected: true,
|
preferSelected: true,
|
||||||
includeLockedElements: true,
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const type = element ? "element" : "canvas";
|
const type = element ? "element" : "canvas";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user