don't show move cursor if transform handles disabled

This commit is contained in:
ad1992 2022-04-25 14:45:17 +05:30
parent 5f57daa132
commit f3ae7a8506

View File

@ -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);