pdf-tools icon indicating copy to clipboard operation
pdf-tools copied to clipboard

Drag to select text does not work correctly when `pdf-view-image-relief` is non-nil

Open rhgg2 opened this issue 2 years ago • 0 comments

Describe the bug pdf-view-image-relief messes up mouse text selection on (at least) MacOS

Steps to Reproduce the behaviour

  • Evaluate (setq pdf-view-image-relief 2)
  • Open a pdf and start selecting text with the mouse by clicking and dragging. Each mouse drag causes the image to zoom in. At the end of selection, a single click restores the correct zoom setting.

What is the expected behaviour? No zooming, as happens when pdf-view-image-relief is nil.

Desktop Please complete the following information:

  • OS: MacOS Ventura 13.2.1
  • Emacs Version: GNU Emacs 28.2 (build 2, aarch64-apple-darwin22.3.0, NS appkit-2299.40 Version 13.2.1 (Build 22D68)) of 2023-02-24
  • Poppler Version: 23.0.2

Your pdf-tools install Please complete the following information:

  • pdf-tools Version: v1.0.0-11-gbc2ba11

rhgg2 avatar Mar 07 '23 10:03 rhgg2