Skip to content

Commit c24aed4

Browse files
committed
Accommodate pixel-scroll-precision-mode
1 parent 7656327 commit c24aed4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: lisp/pdf-roll.el

+2
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,8 @@ It should be added to `pre-redisplay-functions' buffer locally."
209209
(with-demoted-errors "Error in image roll pre-redisplay: %S"
210210
(unless (pdf-roll-page-overlay 1 win)
211211
(pdf-roll-new-window-function win))
212+
(when (memq last-command '(pixel-scroll-precision pixel-scroll-start-momentum))
213+
(pdf-roll-set-vscroll (window-vscroll win t) win))
212214
(let* ((state (alist-get win pdf-roll--state))
213215
(page (pdf-roll-current-page win))
214216
(height (window-pixel-height win))

0 commit comments

Comments
 (0)