xzw 1 rok pred
rodič
commit
b30c1d6da5
1 zmenil súbory, kde vykonal 4 pridanie a 1 odobranie
  1. 4 1
      src/custom/objects/tool/Measure.js

+ 4 - 1
src/custom/objects/tool/Measure.js

@@ -861,8 +861,11 @@ export class Measure extends ctrlPolygon{
         }
         if(this.clickSelected)return    
         this.setSelected(true, 'focus')
-        dontEmit || this.dispatchEvent({type:'selected', state:true})
+        
         this.clickSelected = true
+        dontEmit || this.dispatchEvent({type:'selected', state:true})
+        
+        
         if(this.measureType == 'MulDistance_shape'){
             this.markers.forEach(e=>e.visible = true)
         }