mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
Prevent GC threshold from exceeding fixnum limit during precision scrolling
* lisp/pixel-scroll.el (pixel-scroll-start-momentum): Prevent GC threshold from exceeding most-positive-fixnum.
This commit is contained in:
parent
9a9634dc72
commit
cfb295f1e5
1 changed files with 2 additions and 1 deletions
|
|
@ -761,7 +761,8 @@ It is a vector of the form [ VELOCITY TIME SIGN ]."
|
|||
(let ((window (mwheel-event-window event))
|
||||
;; The animations are smoother if the GC threshold is
|
||||
;; reduced for the duration of the animation.
|
||||
(gc-cons-threshold (* gc-cons-threshold 3))
|
||||
(gc-cons-threshold (min most-positive-fixnum
|
||||
(* gc-cons-threshold 3)))
|
||||
(state nil))
|
||||
(when (framep window)
|
||||
(setq window (frame-selected-window window)))
|
||||
|
|
|
|||
Loading…
Reference in a new issue