|
@@ -65,6 +65,10 @@ namespace ComPDFKit.Tool
|
|
ContentEdit,
|
|
ContentEdit,
|
|
Customize,
|
|
Customize,
|
|
SelectedPage,
|
|
SelectedPage,
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// Scroller Tool
|
|
|
|
+ /// </summary>
|
|
|
|
+ ViewerScroller
|
|
}
|
|
}
|
|
|
|
|
|
public partial class CPDFViewerTool : UserControl
|
|
public partial class CPDFViewerTool : UserControl
|
|
@@ -348,7 +352,7 @@ namespace ComPDFKit.Tool
|
|
{
|
|
{
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
if (!HitTestBorder())
|
|
if (!HitTestBorder())
|
|
{
|
|
{
|
|
RemovePopTextUI();
|
|
RemovePopTextUI();
|
|
@@ -368,6 +372,12 @@ namespace ComPDFKit.Tool
|
|
annotType = C_ANNOTATION_TYPE.C_ANNOTATION_NONE,
|
|
annotType = C_ANNOTATION_TYPE.C_ANNOTATION_NONE,
|
|
IsCreate = false
|
|
IsCreate = false
|
|
};
|
|
};
|
|
|
|
+ if (currentModel == ToolType.ViewerScroller)
|
|
|
|
+ {
|
|
|
|
+ // Scroller Tool Only Scrolle
|
|
|
|
+ MouseLeftButtonDownHandler?.Invoke(this, mouseEventObject);
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
if (isDrawSelectRect)
|
|
if (isDrawSelectRect)
|
|
{
|
|
{
|
|
if (e.ClickCount == 2)
|
|
if (e.ClickCount == 2)
|
|
@@ -712,7 +722,12 @@ namespace ComPDFKit.Tool
|
|
annotType = C_ANNOTATION_TYPE.C_ANNOTATION_NONE,
|
|
annotType = C_ANNOTATION_TYPE.C_ANNOTATION_NONE,
|
|
IsCreate = false
|
|
IsCreate = false
|
|
};
|
|
};
|
|
-
|
|
|
|
|
|
+ if (currentModel == ToolType.ViewerScroller)
|
|
|
|
+ {
|
|
|
|
+ // Scroller Tool Only Scrolle
|
|
|
|
+ MouseLeftButtonDownHandler?.Invoke(this, mouseEventObject);
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
if (Mouse.LeftButton != MouseButtonState.Pressed)
|
|
if (Mouse.LeftButton != MouseButtonState.Pressed)
|
|
{
|
|
{
|
|
List<ToolType> allowModeList = new List<ToolType>()
|
|
List<ToolType> allowModeList = new List<ToolType>()
|