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