1
2
Fork
You've already forked pdf-tools
0

scroll exactly the remaining of the last page #2

Closed
taquangtrung wants to merge 1 commit from child-frame-preview into child-frame-preview
pull from: child-frame-preview
merge into: rahguzar:child-frame-preview
rahguzar:upstream-child-frame-preview
rahguzar:upstream-pdf-roll
rahguzar:master
taquangtrung commented 2024年06月24日 20:06:57 +02:00 (Migrated from github.com)
Copy link

Hi,

Currently, when pdf-roll-mode is enabled, the last page can be over-scrolled to half of the displayed window: the last page is displayed at the top-half, while the bottom-half of the window is empty.

I fixed this issue so that the last page is scrolled to fit exactly the window (when the page is zoomed bigger than a window).

Can you review and merge this PR?
Thanks!

Hi, Currently, when `pdf-roll-mode` is enabled, the last page can be over-scrolled to half of the displayed window: the last page is displayed at the top-half, while the bottom-half of the window is empty. I fixed this issue so that the last page is scrolled to fit exactly the window (when the page is zoomed bigger than a window). Can you review and merge this PR? Thanks!
aikrahguzar commented 2024年07月05日 15:56:11 +02:00 (Migrated from github.com)
Copy link

@taquangtrung, somehow I never got a notification about this and only saw this accidentally. The behavior you mentioned was deliberate on my part. I think it serves as a visual indication of the end of document.

Considering the usual Emacs behavior, I will be surprised if I can scroll at least a little bit past the end of buffer.

If you really want to be able to not get passed the end of buffer, I think a customizable option is better.

@taquangtrung, somehow I never got a notification about this and only saw this accidentally. The behavior you mentioned was deliberate on my part. I think it serves as a visual indication of the end of document. Considering the usual Emacs behavior, I will be surprised if I can scroll at least a little bit past the end of buffer. If you really want to be able to not get passed the end of buffer, I think a customizable option is better.
taquangtrung commented 2024年07月13日 09:28:28 +02:00 (Migrated from github.com)
Copy link

My patch still doesn't work well for slides or when displaying multiple pages in the same window: the last page is displayed at the top of the window, leaving an empty space below it.

I guess it's the nature of pdf-roll, so, I'll close this PR.

Thanks the clarification previously!

My patch still doesn't work well for slides or when displaying multiple pages in the same window: the last page is displayed at the top of the window, leaving an empty space below it. I guess it's the nature of pdf-roll, so, I'll close this PR. Thanks the clarification previously!

Pull request closed

Please reopen this pull request to perform a merge.
Sign in to join this conversation.
No reviewers
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
rahguzar/pdf-tools!2
Reference in a new issue
rahguzar/pdf-tools
No description provided.
Delete branch "child-frame-preview"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?