mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
Use CUA functions to scroll pages with pixel-scroll-scroll-mode
* lisp/pixel-scroll.el (pixel-scroll-interpolate-down) (pixel-scroll-interpolate-up): Use `cua-scroll-up' and `cua-scroll-down' to scroll if `pixel-scroll-precision-interpolate-page' is off. (bug#54696)
This commit is contained in:
parent
f9da45df47
commit
51a98a92e9
1 changed files with 3 additions and 2 deletions
|
|
@ -90,6 +90,7 @@
|
|||
(require 'mwheel)
|
||||
(require 'subr-x)
|
||||
(require 'ring)
|
||||
(require 'cua-base)
|
||||
|
||||
(defvar pixel-wait 0
|
||||
"Idle time on each step of pixel scroll specified in second.
|
||||
|
|
@ -803,14 +804,14 @@ It is a vector of the form [ VELOCITY TIME SIGN ]."
|
|||
(interactive)
|
||||
(if pixel-scroll-precision-interpolate-page
|
||||
(pixel-scroll-precision-interpolate (- (window-text-height nil t)))
|
||||
(scroll-up)))
|
||||
(cua-scroll-up)))
|
||||
|
||||
(defun pixel-scroll-interpolate-up ()
|
||||
"Interpolate a scroll upwards by one page."
|
||||
(interactive)
|
||||
(if pixel-scroll-precision-interpolate-page
|
||||
(pixel-scroll-precision-interpolate (window-text-height nil t))
|
||||
(scroll-down)))
|
||||
(cua-scroll-down)))
|
||||
|
||||
;;;###autoload
|
||||
(define-minor-mode pixel-scroll-precision-mode
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue