GNU bug report logs - #68196
30.0.50; pixel-scroll-precision-mode won't scroll with scroll-margin 2 using macbook trackpad

Previous Next

Package: emacs;

Reported by: Stefan Kangas <stefankangas <at> gmail.com>

Date: Mon, 1 Jan 2024 23:06:02 UTC

Severity: normal

Merged with 66769

Found in version 30.0.50

To reply to this bug, email your comments to 68196 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#68196; Package emacs. (Mon, 01 Jan 2024 23:06:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stefan Kangas <stefankangas <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 01 Jan 2024 23:06:02 GMT) Full text and rfc822 format available.

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

From: Stefan Kangas <stefankangas <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 30.0.50; pixel-scroll-precision-mode won't scroll with scroll-margin
 2 using macbook trackpad
Date: Mon, 1 Jan 2024 15:05:17 -0800
Scrolling slowly with the trackpad in `pixel-scroll-precision-mode'
doesn't work as expected on my recent Macbook Pro with the below
settings.

Recipe to reproduce:

1. Evaluate this form in emacs -Q:

    (progn (setq scroll-step 0)
           (setq scroll-conservatively 500)
           (setq scroll-margin 2)
           (pixel-scroll-precision-mode))

2. Go to some sufficiently long buffer, scroll down a bit and move point
   to the top of the window: C-h i C-v

3. Scroll down slowly using the trackpad.

The window does not scroll down, instead it just bounces back and forth
at the top.

Note that if I scroll fast enough, the window does scroll down as
expected.

In GNU Emacs 30.0.50 (build 6, aarch64-apple-darwin23.2.0, NS
 appkit-2487.30 Version 14.2.1 (Build 23C71)) of 2023-12-29 built on
 MyMachine.local
Repository revision: b0bead793f880a9434c38caeaa744f7d7a0e519b
Repository branch: master
Windowing system distributor 'Apple', version 10.3.2487
System Description:  macOS 14.2.1

Configured features:
ACL GNUTLS JSON LCMS2 LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER PNG
SQLITE3 THREADS TOOLKIT_SCROLL_BARS TREE_SITTER ZLIB

Important settings:
  value of $LC_CTYPE: UTF-8
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Info

Minor modes in effect:
  pixel-scroll-precision-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  isearch-fold-quotes-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  minibuffer-regexp-mode: t
  buffer-read-only: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message mailcap yank-media puny dired
dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068
epg-config gnus-util text-property-search time-date mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs
cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils
pixel-scroll cua-base ring subr-x info rmc iso-transl tooltip cconv
eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type
elisp-mode mwheel term/ns-win ns-win ucs-normalize mule-util
term/common-win tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode lisp-mode prog-mode register
page tab-bar menu-bar rfn-eshadow isearch easymenu timer select
scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors
frame minibuffer nadvice seq simple cl-generic indonesian philippine
cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech
european ethiopic indian cyrillic chinese composite emoji-zwj charscript
charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure
cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp
files window text-properties overlay sha1 md5 base64 format env
code-pages mule custom widget keymap hashtable-print-readable backquote
threads kqueue cocoa ns lcms2 multi-tty make-network-process emacs)

Memory information:
((conses 16 54274 9442) (symbols 48 5645 0) (strings 32 15206 2309)
 (string-bytes 1 447111) (vectors 16 11483)
 (vector-slots 8 167422 14968) (floats 8 329 233)
 (intervals 56 2431 24) (buffers 992 11))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#68196; Package emacs. (Tue, 02 Jan 2024 03:13:02 GMT) Full text and rfc822 format available.

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

From: Yuan Fu <casouri <at> gmail.com>
To: Stefan Kangas <stefankangas <at> gmail.com>
Cc: Po Lu <luangruo <at> yahoo.com>, 68196 <at> debbugs.gnu.org
Subject: Re: bug#68196: 30.0.50; pixel-scroll-precision-mode won't scroll with
 scroll-margin 2 using macbook trackpad
Date: Mon, 1 Jan 2024 19:12:35 -0800

> On Jan 1, 2024, at 3:05 PM, Stefan Kangas <stefankangas <at> gmail.com> wrote:
> 
> Scrolling slowly with the trackpad in `pixel-scroll-precision-mode'
> doesn't work as expected on my recent Macbook Pro with the below
> settings.
> 
> Recipe to reproduce:
> 
> 1. Evaluate this form in emacs -Q:
> 
>    (progn (setq scroll-step 0)
>           (setq scroll-conservatively 500)
>           (setq scroll-margin 2)
>           (pixel-scroll-precision-mode))
> 
> 2. Go to some sufficiently long buffer, scroll down a bit and move point
>   to the top of the window: C-h i C-v
> 
> 3. Scroll down slowly using the trackpad.
> 
> The window does not scroll down, instead it just bounces back and forth
> at the top.
> 
> Note that if I scroll fast enough, the window does scroll down as
> expected.

I think precision scroll requires you to set scroll-margin to 0. I don’t remember where I learnt that fact, CCing Lu since he must know.

Yuan



Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#68196; Package emacs. (Tue, 02 Jan 2024 03:20:02 GMT) Full text and rfc822 format available.

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

From: Po Lu <luangruo <at> yahoo.com>
To: Yuan Fu <casouri <at> gmail.com>
Cc: Stefan Kangas <stefankangas <at> gmail.com>, 68196 <at> debbugs.gnu.org
Subject: Re: bug#68196: 30.0.50; pixel-scroll-precision-mode won't scroll
 with scroll-margin 2 using macbook trackpad
Date: Tue, 02 Jan 2024 11:19:20 +0800
Yuan Fu <casouri <at> gmail.com> writes:

> I think precision scroll requires you to set scroll-margin to 0. I
> don’t remember where I learnt that fact, CCing Lu since he must know.
>
> Yuan

It does on Emacs 30.  There hasn't been any activity in bug#66769, where
several potential solutions are being considered that won't impede
scrolling over images.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#68196; Package emacs. (Tue, 02 Jan 2024 03:31:01 GMT) Full text and rfc822 format available.

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

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Po Lu <luangruo <at> yahoo.com>, Yuan Fu <casouri <at> gmail.com>
Cc: 68196 <at> debbugs.gnu.org
Subject: Re: bug#68196: 30.0.50; pixel-scroll-precision-mode won't scroll with
 scroll-margin 2 using macbook trackpad
Date: Mon, 1 Jan 2024 19:30:05 -0800
forcemerge 66769 68196
close

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

> Yuan Fu <casouri <at> gmail.com> writes:
>
>> I think precision scroll requires you to set scroll-margin to 0. I
>> don’t remember where I learnt that fact, CCing Lu since he must know.
>>
>> Yuan
>
> It does on Emacs 30.  There hasn't been any activity in bug#66769, where
> several potential solutions are being considered that won't impede
> scrolling over images.

Sorry, I had missed that this had already been reported.

I'm merging the bugs.




Forcibly Merged 66769 68196. Request was from Stefan Kangas <stefankangas <at> gmail.com> to control <at> debbugs.gnu.org. (Tue, 02 Jan 2024 03:31:01 GMT) Full text and rfc822 format available.

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

Previous Next


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