mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
don't show move cursor if transform handles disabled
This commit is contained in:
parent
5f57daa132
commit
f3ae7a8506
1 changed files with 9 additions and 0 deletions
|
@ -2871,6 +2871,15 @@ class App extends React.Component<AppProps, AppState> {
|
|||
)) &&
|
||||
!hitElement?.locked
|
||||
) {
|
||||
if (hitElement && isCustomElement(hitElement)) {
|
||||
const config = getCustomElementConfig(
|
||||
this.props.customElementsConfig,
|
||||
hitElement.customType,
|
||||
);
|
||||
if (!config?.transformHandles) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
setCursor(this.canvas, CURSOR_TYPE.MOVE);
|
||||
} else {
|
||||
setCursor(this.canvas, CURSOR_TYPE.AUTO);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue