izuzak / atom-pdf-view

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

Splitting a pane resets the location of the PDF #47

Open ghost opened 9 years ago

ghost commented 9 years ago

ctrl-k up/down/left/right causes the view to shift back to the top of the PDF. Small, but slightly problematic when viewing longer PDFs.

izuzak commented 9 years ago

Thanks for the report. I agree -- would be neat if that doesn't happen. If someone wants to make a pull request to improve that -- I'd be happy to review and merge.

314eter commented 8 years ago

This was fixed by #121.

izuzak commented 8 years ago

@314eter I might be missing something, but I don't think it was fixed. I just tried it with a split-right, and after getting two panes -- the left pane was scrolled back to the top, while the right was scrolled to the position before the split. Are you seeing something different?

314eter commented 8 years ago

I was too optimistic :worried:

It happens if the layout switches between only one pane or more panes, even when it's caused by the splitting or closing of another tab. But once there is more than one pane, splitting works as it should.