Browse Source

修正注释偏移

gavin.chen 9 months ago
parent
commit
98f04ade0d
1 changed files with 3 additions and 1 deletions
  1. 3 1
      lib/process/workspace/urm/application.dart

+ 3 - 1
lib/process/workspace/urm/application.dart

@@ -40,7 +40,9 @@ class URMApplication extends Application {
     final y = offset.dy / height;
     Rect zoomArea = urmDataProcessor.measureAreaInFullVisual;
     Offset percentOffset = Offset(x, y);
-    percentOffset = pointPctOutRect(zoomArea, percentOffset);
+    if (!isAnnotationWorking) {
+      percentOffset = pointPctOutRect(zoomArea, percentOffset);
+    }
     final info = PointInfo.fromOffset(percentOffset, type);
     info.hostVisualArea = currentVisualArea; // 未切换区域则沿用当前区域