|
@@ -32,15 +32,20 @@ class URMApplication extends Application {
|
|
|
|
|
|
@override
|
|
|
PointInfo createPointInfo(Offset offset, PointInfoType type) {
|
|
|
- final width = urmDataProcessor.showLeftRight
|
|
|
+ double width = urmDataProcessor.showLeftRight
|
|
|
? displaySize.width / 2
|
|
|
: displaySize.width;
|
|
|
+ if (isAnnotationWorking) {
|
|
|
+ width = displaySize.width;
|
|
|
+ }
|
|
|
final height = displaySize.height;
|
|
|
final x = offset.dx / width;
|
|
|
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; // 未切换区域则沿用当前区域
|
|
|
|