From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#38187: 27.0.50; No mouse-wheel scaling on images Date: Thu, 21 Nov 2019 13:11:02 +0100 Message-ID: <87o8x54eg9.fsf@gnus.org> References: <87tv79ksuz.fsf@mail.linkov.net> <83zhgy62u8.fsf@gnu.org> <87y2we7r90.fsf@gnus.org> <83lfse5w04.fsf@gnu.org> <87a78u7ags.fsf@gnus.org> <878soemc79.fsf@marxist.se> <87mucut8ch.fsf@mail.linkov.net> <87ftilsg6q.fsf@gnus.org> <87r224sw6s.fsf@mail.linkov.net> <87zhgsnv7x.fsf@gnus.org> <87h82ykur6.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="205002"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Stefan Kangas , 38187@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 21 13:12:11 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iXlJj-000rB5-35 for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Nov 2019 13:12:11 +0100 Original-Received: from localhost ([::1]:39486 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iXlJh-0004Yo-Fq for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Nov 2019 07:12:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41977) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iXlJb-0004Yc-7K for bug-gnu-emacs@gnu.org; Thu, 21 Nov 2019 07:12:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iXlJa-0002xn-3r for bug-gnu-emacs@gnu.org; Thu, 21 Nov 2019 07:12:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42647) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iXlJa-0002xh-0a for bug-gnu-emacs@gnu.org; Thu, 21 Nov 2019 07:12:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iXlJZ-0000Wy-QV for bug-gnu-emacs@gnu.org; Thu, 21 Nov 2019 07:12:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 21 Nov 2019 12:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38187 X-GNU-PR-Package: emacs Original-Received: via spool by 38187-submit@debbugs.gnu.org id=B38187.15743382791990 (code B ref 38187); Thu, 21 Nov 2019 12:12:01 +0000 Original-Received: (at 38187) by debbugs.gnu.org; 21 Nov 2019 12:11:19 +0000 Original-Received: from localhost ([127.0.0.1]:51468 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iXlIt-0000W2-Dx for submit@debbugs.gnu.org; Thu, 21 Nov 2019 07:11:19 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:58072) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iXlIr-0000Vq-Um for 38187@debbugs.gnu.org; Thu, 21 Nov 2019 07:11:18 -0500 Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iXlId-0004BC-1F; Thu, 21 Nov 2019 13:11:09 +0100 In-Reply-To: <87h82ykur6.fsf@mail.linkov.net> (Juri Linkov's message of "Thu, 21 Nov 2019 01:12:17 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:172112 Archived-At: Juri Linkov 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