[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: master 40c0124816: Minor improvements to precision scroll interpolat
From: |
Po Lu |
Subject: |
Re: master 40c0124816: Minor improvements to precision scroll interpolation |
Date: |
Sat, 30 Jul 2022 15:03:08 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) |
Eli Zaretskii <eliz@gnu.org> writes:
>> --- a/lisp/pixel-scroll.el
>> +++ b/lisp/pixel-scroll.el
>> @@ -759,6 +759,9 @@ It is a vector of the form [ VELOCITY TIME SIGN ]."
>> (interactive "e")
>> (when pixel-scroll-precision-use-momentum
>> (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))
>> (state nil))
>
> I don't think it is safe to multiply gc-cons-threshold without some
> kind of limitation from above: the user or some Lisp program could
> have increased the threshold already to a large value.
Right, I see the problem.