izuzak / atom-pdf-view

Support for viewing PDF files in Atom.
https://atom.io/packages/pdf-view
MIT License
109 stars 30 forks source link

Zoom by trackpad gesture too sensitive #163

Open pkalbers opened 7 years ago

pkalbers commented 7 years ago

I am on a MacBook and use the trackpad for gesture zoom. Even if carefully trying to zoom a little in or out, the PDF is zoomed drastically, such that it mostly depends on luck whether I see what I intended. Also, there is no "live update". I zoom blindly and need to wait until the PDF has been rendered again. In contrast, any usual PDF reader provides good support for instant "live updates"; i.e. I still have my fingers on the trackpad and have full control over the zoom level while still "fingering".

Is there a way to implement better zooming?

izuzak commented 7 years ago

Hi @pkalbers 👋 -- thanks for opening an issue.

To help me and other folks who might be interested in this issue -- could you please provide more information? Specifically, can you provide the version of OSX you're using, the version of Atom you're using, and the version of this package? Also, can you record a short GIF which clearly demonstrates the problems?

Is there a way to implement better zooming?

Possibly, but I probably won't have time to implement that myself anytime soon. If you or someone else would like to take a stab at implementing a better way -- I'd be happy to review a pull request.

dpo commented 7 years ago

I can relate to @pkalbers. This package is excellent but zooming is a bit unpredictable with a trackpad. I'm (still) on OSX 10.9. This is what zooming with the trackpad is like for me:

pdf-view-zoom

Sometimes, zooming back in takes a couple of attempt, and if you happen to click by mistake (on my trackpad, tapping is clicking), then you activate syncTeX. It's hard to control the zoom level and the "blinking" effect must be what @pkalbers refers to as "live update".

jpcoleman commented 7 years ago

I am having the same issue. I'm running MacOS 10.12.5, Atom 1.18.0 x64, and pdf-view 0.59.0.

I wish I could contribute, but my coding experience is all scientific research in Fortran and Python. Thank you for this great package, and thank you to anyone who is able to work on this issue.

Aerijo commented 7 years ago

@dpo While not a fix, you can set it to only activate synctex on a double click.