From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tak Kunihiro Newsgroups: gmane.emacs.bugs Subject: bug#57995: with pixel-scroll-precision-mode Date: Tue, 27 Sep 2022 13:15:52 +0900 (JST) Message-ID: <20220927.131552.1724748853665316882.tkk@misasa.okayama-u.ac.jp> References: <87bkr7eqk0.fsf@yahoo.com> <87edvya7pt.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7468"; mail-complaints-to="usenet@ciao.gmane.io" Cc: tkk@misasa.okayama-u.ac.jp, 57995@debbugs.gnu.org To: luangruo@yahoo.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 27 06:16:12 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1od20x-0001pL-RK for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 27 Sep 2022 06:16:11 +0200 Original-Received: from localhost ([::1]:51964 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1od20w-0005CP-6S for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 27 Sep 2022 00:16:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36406) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1od20o-0005C1-Oc for bug-gnu-emacs@gnu.org; Tue, 27 Sep 2022 00:16:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53055) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1od20o-0000DG-EF for bug-gnu-emacs@gnu.org; Tue, 27 Sep 2022 00:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1od20o-0003qU-1u for bug-gnu-emacs@gnu.org; Tue, 27 Sep 2022 00:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tak Kunihiro Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 27 Sep 2022 04:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57995 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 57995-submit@debbugs.gnu.org id=B57995.166425216114776 (code B ref 57995); Tue, 27 Sep 2022 04:16:02 +0000 Original-Received: (at 57995) by debbugs.gnu.org; 27 Sep 2022 04:16:01 +0000 Original-Received: from localhost ([127.0.0.1]:52133 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1od20n-0003qC-5c for submit@debbugs.gnu.org; Tue, 27 Sep 2022 00:16:01 -0400 Original-Received: from jlsv301.okayama-u.ac.jp ([150.46.12.5]:25624) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1od20j-0003pw-7K for 57995@debbugs.gnu.org; Tue, 27 Sep 2022 00:15:59 -0400 Original-Received: from localhost (unknown [172.24.2.23]) by jlsv301.okayama-u.ac.jp (Postfix) with ESMTPSA id 5AF227608EA; Tue, 27 Sep 2022 13:15:53 +0900 (JST) In-Reply-To: <87edvya7pt.fsf@yahoo.com> X-Mailer: Mew version 6.8 on Emacs 28.2 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:243687 Archived-At: I do not know how to call debugger. It will take a while to respond! >>>> With pixel-scroll-precision-mode, and does >>>> not work. Is this expected behavior? >>>> >>>> 1. emacs -Q >>>> 2. (setq mouse-wheel-tilt-scroll t) >>>> 3. or scrolls buffer. >>>> 4. (pixel-scroll-precision-mode 1) >>>> 5. Then or does not scroll buffer. >>> >>> Thanks for reporting this bug. Could you please include the output from >>> `report-emacs-bug', as this is likely a system-specific issue? >> >> No buffer scroll with and by mouse with Mac. >> I confirm that I can scroll buffer with swipe-right and swipe-left by >> touchpad with MacBook. > > Right, thanks. Could you please run Emacs underneath a debugger (GDB or > LLDB), and see whether or not this code around line 7342 of nsterm.m is > ever hit: > > CGFloat delta = [theEvent deltaY]; > /* Mac notebooks send wheel events with delta equal to 0 > when trackpad scrolling. */ > if (delta == 0) > { > delta = [theEvent deltaX]; > if (delta == 0) > { > NSTRACE_MSG ("deltaIsZero"); > return; > } > emacs_event->kind = HORIZ_WHEEL_EVENT; <================ > } > else > emacs_event->kind = WHEEL_EVENT; > > emacs_event->code = 0; > emacs_event->modifiers = EV_MODIFIERS (theEvent) | > ((delta > 0) ? up_modifier : down_modifier); > > when you try to scroll left or right with your mouse while > pixel-scroll-precision-mode is enabled?