|
@@ -602,7 +602,7 @@ namespace ComPDFKit.Tool
|
|
|
}
|
|
|
if (currentModel == ToolType.WidgetEdit)
|
|
|
{
|
|
|
- AnnotSelectAreaSelect(true);
|
|
|
+ bool areaSelectAdd=AnnotSelectAreaSelect(true);
|
|
|
if (AnnotWidgetHitTest())
|
|
|
{
|
|
|
BaseWidget checkItem = PDFViewer?.AnnotHitTest() as BaseWidget;
|
|
@@ -612,6 +612,10 @@ namespace ComPDFKit.Tool
|
|
|
{
|
|
|
CleanSelectedRect();
|
|
|
}
|
|
|
+ if(IsMoved==false && AnnotSelectAreaHitTest()==false && AnnotWidgetHitTest()==false)
|
|
|
+ {
|
|
|
+ AnnotSelectClean();
|
|
|
+ }
|
|
|
if (AnnotSelectGetCount() == 1)
|
|
|
{
|
|
|
cacheHitTestAnnot = AnnotSelectGetAnnot();
|
|
@@ -621,7 +625,7 @@ namespace ComPDFKit.Tool
|
|
|
SelectedRect selectedRect = CommonHelper.FindVisualChild<SelectedRect>(baseLayer as CustomizeLayer);
|
|
|
if (selectedRect != null)
|
|
|
{
|
|
|
- if (IsMoved)
|
|
|
+ if (IsMoved && areaSelectAdd == false)
|
|
|
{
|
|
|
selectedRect.UpdateAnnotData(cacheHitTestAnnot.GetAnnotData());
|
|
|
}
|