pvginkel / PdfiumViewer

PDF viewer based on Google's PDFium.
Apache License 2.0
967 stars 418 forks source link

Ability to disable panning #139

Open fds-ssg opened 6 years ago

fds-ssg commented 6 years ago

In a PanningZoomingScrollControl, the control is always in panning mode. This means that:

  1. The mouse cursor will be a "hand" cursor
  2. A mouse drag operation will always perform panning (moving the document within the visible window)

In order to support other mouse drag operations, such as selecting a region of the document or dragging over an area to create a highlight, there should be a mechanism for turning off the panning mode and related functionality.

When the control's panning mode is disabled, consumers of the Control can implement their own behaviors for mouse click and drag operations.