linuxmint / xreader

A generic Document Reader
GNU General Public License v2.0
211 stars 59 forks source link

Wrong placement of annotation highlight #610

Open tyagi-ankit opened 11 months ago

tyagi-ankit commented 11 months ago
 * Xreader version 3.8.2
 * Distribution - Linux Mint 21.2 Cinnamon

Issue If the page you are highlighting covers less than half of the window, annotation doesn't follow the cursor and automatically happens on the next page. But if the page covers more than half the window, annotation happens on the correct location.

Steps to reproduce (See the small demo video)

  1. Open a pdf with xreader
  2. In the view menu select "continuous" and "full page width".
  3. Scroll to page n, but make sure that some portion of page n-1 is also visible
  4. Select annotation on the sidebar, and select highlighting marker.
  5. Try to highlight anywhere on page n-1

Expected behaviour Highlighting should happen where the cursor is dragging, not on the next page.

Other information A small demo video ---

https://github.com/linuxmint/xreader/assets/25789626/129d21f8-7f15-480d-af97-6b3274954549