GNU bug report logs - #57995
<wheel-right> with pixel-scroll-precision-mode

Previous Next

Package: emacs;

Reported by: Tak Kunihiro <tkk <at> misasa.okayama-u.ac.jp>

Date: Thu, 22 Sep 2022 03:52:01 UTC

Severity: normal

Done: Po Lu <luangruo <at> yahoo.com>

Bug is archived. No further changes may be made.

Full log


Message #16 received at 57995 <at> debbugs.gnu.org (full text, mbox):

From: Po Lu <luangruo <at> yahoo.com>
To: Tak Kunihiro <tkk <at> misasa.okayama-u.ac.jp>
Cc: 57995 <at> debbugs.gnu.org
Subject: Re: bug#57995: <wheel-right> with pixel-scroll-precision-mode
Date: Mon, 26 Sep 2022 15:57:34 +0800
Tak Kunihiro <tkk <at> misasa.okayama-u.ac.jp> writes:

>>> With pixel-scroll-precision-mode, <wheel-right> and <wheel-left> does
>>> not work. Is this expected behavior?
>>> 
>>> 1. emacs -Q
>>> 2. (setq mouse-wheel-tilt-scroll t)
>>> 3. <wheel-right> or <wheel-left> scrolls buffer.
>>> 4. (pixel-scroll-precision-mode 1)
>>> 5. Then <wheel-right> or <wheel-left> 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 <wheel-right> and <wheel-left> 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?




This bug report was last modified 1 year and 261 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.