bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#38187: 27.0.50; No mouse-wheel scaling on images


From: Lars Ingebrigtsen
Subject: bug#38187: 27.0.50; No mouse-wheel scaling on images
Date: Thu, 21 Nov 2019 13:11:02 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Juri Linkov <juri@linkov.net> writes:

> I noticed that using the mouse-wheel on images is not responsive enough.
> It takes too much time when every step of the mouse scrolling wheel
> needs to scale the image separately for every consecutive rescaling.

Yeah, users are more likely to issue a bunch of scroll wheel events
rapidly than hitting `+' at the same rate, I guess.

> So I experimented with debouncing - a new macro 'debounce' swallows
> all intermediate calls in quick succession to 'image--change-size',
> and executes only the last call in sequence.
>
> But actually it requires another better macro 'debounce-reduce'
> that accumulates the state from all calls by multiplying all
> intermediate scaling factors, and using the result on the final call:

Makes sense to me.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

[Prev in Thread] Current Thread [Next in Thread]