don't show move cursor if transform handles disabled
This commit is contained in:
parent
5f57daa132
commit
f3ae7a8506
@ -2871,6 +2871,15 @@ class App extends React.Component<AppProps, AppState> {
|
|||||||
)) &&
|
)) &&
|
||||||
!hitElement?.locked
|
!hitElement?.locked
|
||||||
) {
|
) {
|
||||||
|
if (hitElement && isCustomElement(hitElement)) {
|
||||||
|
const config = getCustomElementConfig(
|
||||||
|
this.props.customElementsConfig,
|
||||||
|
hitElement.customType,
|
||||||
|
);
|
||||||
|
if (!config?.transformHandles) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
setCursor(this.canvas, CURSOR_TYPE.MOVE);
|
setCursor(this.canvas, CURSOR_TYPE.MOVE);
|
||||||
} else {
|
} else {
|
||||||
setCursor(this.canvas, CURSOR_TYPE.AUTO);
|
setCursor(this.canvas, CURSOR_TYPE.AUTO);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user