xzw před 3 týdny
rodič
revize
1d4e4c1e93
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/custom/start.js

+ 1 - 1
src/custom/start.js

@@ -1235,7 +1235,7 @@ export function mergeEditStart(dom, mapDom, {queryCloudLonLatUrl}={}){
                         }  
                         }  
                         let maintainCenter = (e)=>{ 
                         let maintainCenter = (e)=>{ 
                             //MergeEditor.maintainBoundXY(model) 
                             //MergeEditor.maintainBoundXY(model) 
-                            e.by2d || model.atPath || MergeEditor.maintainBoundCenter(model) 
+                            /* e.by2d || */ e.byControl && MergeEditor.maintainBoundCenter(model) 
                             updateBound()
                             updateBound()
                             model.dispatchEvent({type:'transformChanged',  byControl:e.byControl})  
                             model.dispatchEvent({type:'transformChanged',  byControl:e.byControl})  
                         }
                         }