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