|
@@ -190,8 +190,8 @@ namespace Compdfkit_Tools.PDFControl
|
|
|
MouseLeftButtonDownHandler?.Invoke(sender, e);
|
|
|
ToolType toolType = PDFToolManager.GetToolType();
|
|
|
|
|
|
- if (e.hitTestType != MouseHitTestType.Text && e.hitTestType != MouseHitTestType.SelectedPageRect && e.hitTestType != MouseHitTestType.Annot && e.hitTestType != MouseHitTestType.SelectRect)
|
|
|
- {
|
|
|
+ if (e.hitTestType != MouseHitTestType.Text && e.hitTestType != MouseHitTestType.SelectedPageRect && e.hitTestType != MouseHitTestType.Annot && e.hitTestType != MouseHitTestType.SelectRect && e.hitTestType != MouseHitTestType.Widget)
|
|
|
+ {
|
|
|
if (toolType == ToolType.Pan)
|
|
|
{
|
|
|
IsHitEmpty = true;
|
|
@@ -653,20 +653,11 @@ namespace Compdfkit_Tools.PDFControl
|
|
|
|
|
|
if (hitAnnot != null)
|
|
|
{
|
|
|
- newCursor = Cursors.Arrow;
|
|
|
- if (hitAnnot is LinkAnnot)
|
|
|
+ newCursor = annotEditCursor;
|
|
|
+ if (hitAnnot is LinkAnnot || hitAnnot is BaseWidget)
|
|
|
{
|
|
|
newCursor = Cursors.Hand;
|
|
|
}
|
|
|
-
|
|
|
- if ((hitAnnot is BaseWidget))
|
|
|
- {
|
|
|
- BaseWidget widgetAnnot = (BaseWidget)hitAnnot;
|
|
|
- if (widgetAnnot.GetFormType() == C_WIDGET_TYPE.WIDGET_PUSHBUTTON)
|
|
|
- {
|
|
|
- newCursor = Cursors.Hand;
|
|
|
- }
|
|
|
- }
|
|
|
cursorSet = true;
|
|
|
}
|
|
|
else
|