2
0
Эх сурвалжийг харах

don't show move cursor if transform handles disabled

ad1992 3 жил өмнө
parent
commit
f3ae7a8506

+ 9 - 0
src/components/App.tsx

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