unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Tak Kunihiro <tak.kunihiro@gmail.com>
To: Po Lu <luangruo@yahoo.com>, 57995@debbugs.gnu.org
Cc: Tak Kunihiro <tak.kunihiro@gmail.com>
Subject: bug#57995: <wheel-right> with pixel-scroll-precision-mode
Date: Tue, 8 Nov 2022 10:34:42 +0900	[thread overview]
Message-ID: <6F714A91-7363-414F-9998-76F2EE4031DC@gmail.com> (raw)
In-Reply-To: <87mt9384u8.fsf@yahoo.com>

Without modifying break point, I got following results.

> (lldb) p horizontal
(bool) $0 = true
> (lldb) p emacs_event->kind
(event_kind) $1 = HORIZ_WHEEL_EVENT
> (lldb) p totalDeltaX

(int) $2 = 0

HTH

$ ./configure CFLAGS="-g -O0"
$ make
$ make install
$ lldb nextstep/Emacs.app/Contents/MacOS/Emacs
(lldb) br set --file src/nsterm.m --line 7363
(lldb) run -Q
M-: (setq mouse-wheel-tilt-scroll t)
M-: (pixel-scroll-precision-mode 1)
<wheel-right>
(lldb)
* thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
   frame #0: 0x000000010031f749 Emacs`-[EmacsView mouseDown:](self=0x0000000103023790, _cmd="mouseDown:", theEvent=0x0000600003706b80) at nsterm.m:7373:5
   7350 #if defined (NS_IMPL_GNUSTEP) || MAC_OS_X_VERSION_MIN_REQUIRED < 1070
   7351        {
   7352          CGFloat delta = [theEvent deltaY];
   7353          /* Mac notebooks send wheel events with delta equal to 0
   7354     when trackpad scrolling.  */
   7355          if (delta == 0)
   7356            {
   7357              delta = [theEvent deltaX];
   7358              if (delta == 0)
   7359                {
   7360                  NSTRACE_MSG ("deltaIsZero");
   7361                  return;
   7362                }
   7363              emacs_event->kind = HORIZ_WHEEL_EVENT;
   7364            }
   7365          else
   7366            emacs_event->kind = WHEEL_EVENT;
   7367
   7368          emacs_event->code = 0;
   7369          emacs_event->modifiers = EV_MODIFIERS (theEvent) |
   7370             ((delta > 0) ? up_modifier : down_modifier);
   7371         }
   7372 #endif
-> 7373     }
   7374   else
   7375     {
   7376       Lisp_Object tab_bar_arg = Qnil;
Target 0: (Emacs) stopped.
(lldb) p horizontal
(bool) $0 = true
(lldb) p emacs_event->kind
(event_kind) $1 = HORIZ_WHEEL_EVENT
(lldb) p totalDeltaX
(int) $2 = 0
(lldb)






  reply	other threads:[~2022-11-08  1:34 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-22  3:50 bug#57995: <wheel-right> with pixel-scroll-precision-mode Tak Kunihiro
2022-09-22  8:55 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-09-26  5:43   ` Tak Kunihiro
2022-09-26  7:57     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-09-27  4:15       ` Tak Kunihiro
2022-09-27  4:49         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-11-07  9:34         ` Tak Kunihiro
2022-11-07  9:57           ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-11-08  1:34             ` Tak Kunihiro [this message]
2022-11-08  1:42               ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-11-08  1:47                 ` Tak Kunihiro
2022-11-08  5:23                   ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-11-08  5:28                     ` Tak Kunihiro
2022-11-08  8:10                       ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-03  9:20                         ` Stefan Kangas
2023-09-03  9:36                           ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-04  0:18                             ` Tak Kunihiro
2023-09-04 13:13                               ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6F714A91-7363-414F-9998-76F2EE4031DC@gmail.com \
    --to=tak.kunihiro@gmail.com \
    --cc=57995@debbugs.gnu.org \
    --cc=luangruo@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).