izuzak / atom-pdf-view

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

Save zoom and scroll position on reload #14

Closed aengelke closed 10 years ago

aengelke commented 10 years ago

If the file is modified, the view resets to the default zoom level and scrolls to the top. It'd be nice, if the zoom doesn't change and the scroll position stays the same.

izuzak commented 10 years ago

@aengelke Yeah, that'd be pretty useful -- thanks for the feature request. Seems like a similar situation as described in https://github.com/izuzak/atom-pdf-view/issues/13.

Just curious -- I'm guessing that you're generating PDFs from source with some tool, and viewing them in Atom (and not changing them manually somehow)?

aengelke commented 10 years ago

Yes, I'm using TeX.

aengelke commented 10 years ago

For keeping the zoom-level: remove lib/pdf-editor-view.coffee:69

izuzak commented 10 years ago

Just pushed version 0.7.0 which should fix this. Thanks again for the report! :zap: