unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#57140: New user option mouse-wheel-text-scale-buffer
@ 2022-08-11 13:10 Tyler Grinn
  2022-08-11 13:20 ` Tyler Grinn
  0 siblings, 1 reply; 11+ messages in thread
From: Tyler Grinn @ 2022-08-11 13:10 UTC (permalink / raw)
  To: 57140

[-- Attachment #1: Type: text/plain, Size: 297 bytes --]


By default, mouse-wheel-(global-)text-scale increases or decreases the
text scale for every scroll event. I think it's a good idea to have an
option to buffer that (is that the right word?) so you can more easily
choose the text scale you want. I kept the default behavior intact.

Best,

Tyler


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: mouse-wheel-text-scale-buffer --]
[-- Type: text/x-patch, Size: 3630 bytes --]

From 062db51e9f7faa341f92feff392a2c0109aa23dc Mon Sep 17 00:00:00 2001
From: Tyler Grinn <tylergrinn@gmail.com>
Date: Wed, 10 Aug 2022 22:32:12 -0400
Subject: [PATCH] Add new user option mouse-wheel-text-scale-buffer

* lisp/mwheel.el (mouse-wheel-text-scale-buffer): New user option.
(mouse-wheel-text-scale): Use it.
(mouse-wheel-global-text-scale): Use it.
---
 lisp/mwheel.el | 31 +++++++++++++++++++++++++++----
 1 file changed, 27 insertions(+), 4 deletions(-)

diff --git a/lisp/mwheel.el b/lisp/mwheel.el
index ba5255fc07..816398e063 100644
--- a/lisp/mwheel.el
+++ b/lisp/mwheel.el
@@ -214,6 +214,14 @@ mouse-wheel-flip-direction
   :type 'boolean
   :version "26.1")
 
+(defcustom mouse-wheel-text-scale-buffer 0
+  "Buffer this many mouse scroll events before changing text scale.
+By default, every scroll event will trigger one text scale adjustment.
+Increase this number to hinder text scale adjustments while scrolling."
+  :group 'mouse
+  :type 'number
+  :version "29.1")
+
 (defun mwheel-event-button (event)
   (let ((x (event-basic-type event)))
     ;; Map mouse-wheel events to appropriate buttons
@@ -424,6 +432,9 @@ mwheel-scroll
 
 (put 'mwheel-scroll 'scroll-command t)
 
+(defvar mouse-wheel-text-scale-counter 0
+  "Keeps track of how many mouse events since last text-scale.")
+
 (defun mouse-wheel-text-scale (event)
   "Adjust font size of the default face according to EVENT.
 See also `text-scale-adjust'."
@@ -435,10 +446,16 @@ mouse-wheel-text-scale
     (unwind-protect
         (cond ((memq button (list mouse-wheel-down-event
                                   mouse-wheel-down-alternate-event))
-               (text-scale-increase 1))
+               (setq mouse-wheel-text-scale-counter (1- mouse-wheel-text-scale-counter))
+               (when (< mouse-wheel-text-scale-counter (- mouse-wheel-text-scale-buffer))
+                 (setq mouse-wheel-text-scale-counter 0)
+                 (text-scale-increase 1)))
               ((memq button (list mouse-wheel-up-event
                                   mouse-wheel-up-alternate-event))
-               (text-scale-decrease 1)))
+               (setq mouse-wheel-text-scale-counter (1+ mouse-wheel-text-scale-counter))
+               (when (> mouse-wheel-text-scale-counter mouse-wheel-text-scale-buffer)
+                 (setq mouse-wheel-text-scale-counter 0)
+                 (text-scale-decrease 1))))
       (select-window selected-window))))
 
 (declare-function global-text-scale-adjust "face-remap.el" (increment))
@@ -450,10 +467,16 @@ mouse-wheel-global-text-scale
     (unwind-protect
         (cond ((memq button (list mouse-wheel-down-event
                                   mouse-wheel-down-alternate-event))
-               (global-text-scale-adjust 1))
+               (setq mouse-wheel-text-scale-counter (1- mouse-wheel-text-scale-counter))
+               (when (<= mouse-wheel-text-scale-counter (- mouse-wheel-text-scale-buffer))
+                 (setq mouse-wheel-text-scale-counter 0)
+                 (global-text-scale-adjust 1)))
               ((memq button (list mouse-wheel-up-event
                                   mouse-wheel-up-alternate-event))
-               (global-text-scale-adjust -1))))))
+               (setq mouse-wheel-text-scale-counter (1+ mouse-wheel-text-scale-counter))
+               (when (>= mouse-wheel-text-scale-counter mouse-wheel-text-scale-buffer)
+                 (setq mouse-wheel-text-scale-counter 0)
+                 (global-text-scale-adjust -1)))))))
 
 (defun mouse-wheel--add-binding (key fun)
   "Bind mouse wheel button KEY to function FUN.
-- 
2.37.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* bug#57140: New user option mouse-wheel-text-scale-buffer
  2022-08-11 13:10 bug#57140: New user option mouse-wheel-text-scale-buffer Tyler Grinn
@ 2022-08-11 13:20 ` Tyler Grinn
  2022-08-11 13:28   ` Eli Zaretskii
  0 siblings, 1 reply; 11+ messages in thread
From: Tyler Grinn @ 2022-08-11 13:20 UTC (permalink / raw)
  To: 57140

[-- Attachment #1: Type: text/plain, Size: 373 bytes --]

Tyler Grinn <tylergrinn@gmail.com> writes:

> By default, mouse-wheel-(global-)text-scale increases or decreases the
> text scale for every scroll event. I think it's a good idea to have an
> option to buffer that (is that the right word?) so you can more easily
> choose the text scale you want. I kept the default behavior intact.
>
> Best,
>
> Tyler

There was a typo.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: mouse-wheel-text-scale-buffer --]
[-- Type: text/x-patch, Size: 3628 bytes --]

From 94f0b6a2522050b8304aab0d85f3129805c1025e Mon Sep 17 00:00:00 2001
From: Tyler Grinn <tylergrinn@gmail.com>
Date: Wed, 10 Aug 2022 22:32:12 -0400
Subject: [PATCH] Add new user option mouse-wheel-text-scale-buffer

* lisp/mwheel.el (mouse-wheel-text-scale-buffer): New user option.
(mouse-wheel-text-scale): Use it.
(mouse-wheel-global-text-scale): Use it.
---
 lisp/mwheel.el | 31 +++++++++++++++++++++++++++----
 1 file changed, 27 insertions(+), 4 deletions(-)

diff --git a/lisp/mwheel.el b/lisp/mwheel.el
index ba5255fc07..16a63a8105 100644
--- a/lisp/mwheel.el
+++ b/lisp/mwheel.el
@@ -214,6 +214,14 @@ mouse-wheel-flip-direction
   :type 'boolean
   :version "26.1")
 
+(defcustom mouse-wheel-text-scale-buffer 0
+  "Buffer this many mouse scroll events before changing text scale.
+By default, every scroll event will trigger one text scale adjustment.
+Increase this number to hinder text scale adjustments while scrolling."
+  :group 'mouse
+  :type 'number
+  :version "29.1")
+
 (defun mwheel-event-button (event)
   (let ((x (event-basic-type event)))
     ;; Map mouse-wheel events to appropriate buttons
@@ -424,6 +432,9 @@ mwheel-scroll
 
 (put 'mwheel-scroll 'scroll-command t)
 
+(defvar mouse-wheel-text-scale-counter 0
+  "Keeps track of how many mouse events since last text-scale.")
+
 (defun mouse-wheel-text-scale (event)
   "Adjust font size of the default face according to EVENT.
 See also `text-scale-adjust'."
@@ -435,10 +446,16 @@ mouse-wheel-text-scale
     (unwind-protect
         (cond ((memq button (list mouse-wheel-down-event
                                   mouse-wheel-down-alternate-event))
-               (text-scale-increase 1))
+               (setq mouse-wheel-text-scale-counter (1- mouse-wheel-text-scale-counter))
+               (when (< mouse-wheel-text-scale-counter (- mouse-wheel-text-scale-buffer))
+                 (setq mouse-wheel-text-scale-counter 0)
+                 (text-scale-increase 1)))
               ((memq button (list mouse-wheel-up-event
                                   mouse-wheel-up-alternate-event))
-               (text-scale-decrease 1)))
+               (setq mouse-wheel-text-scale-counter (1+ mouse-wheel-text-scale-counter))
+               (when (> mouse-wheel-text-scale-counter mouse-wheel-text-scale-buffer)
+                 (setq mouse-wheel-text-scale-counter 0)
+                 (text-scale-decrease 1))))
       (select-window selected-window))))
 
 (declare-function global-text-scale-adjust "face-remap.el" (increment))
@@ -450,10 +467,16 @@ mouse-wheel-global-text-scale
     (unwind-protect
         (cond ((memq button (list mouse-wheel-down-event
                                   mouse-wheel-down-alternate-event))
-               (global-text-scale-adjust 1))
+               (setq mouse-wheel-text-scale-counter (1- mouse-wheel-text-scale-counter))
+               (when (< mouse-wheel-text-scale-counter (- mouse-wheel-text-scale-buffer))
+                 (setq mouse-wheel-text-scale-counter 0)
+                 (global-text-scale-adjust 1)))
               ((memq button (list mouse-wheel-up-event
                                   mouse-wheel-up-alternate-event))
-               (global-text-scale-adjust -1))))))
+               (setq mouse-wheel-text-scale-counter (1+ mouse-wheel-text-scale-counter))
+               (when (> mouse-wheel-text-scale-counter mouse-wheel-text-scale-buffer)
+                 (setq mouse-wheel-text-scale-counter 0)
+                 (global-text-scale-adjust -1)))))))
 
 (defun mouse-wheel--add-binding (key fun)
   "Bind mouse wheel button KEY to function FUN.
-- 
2.37.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* bug#57140: New user option mouse-wheel-text-scale-buffer
  2022-08-11 13:20 ` Tyler Grinn
@ 2022-08-11 13:28   ` Eli Zaretskii
  2022-08-11 15:23     ` Tyler Grinn
  0 siblings, 1 reply; 11+ messages in thread
From: Eli Zaretskii @ 2022-08-11 13:28 UTC (permalink / raw)
  To: Tyler Grinn; +Cc: 57140

> From: Tyler Grinn <tylergrinn@gmail.com>
> Date: Thu, 11 Aug 2022 09:20:39 -0400
> 
> > By default, mouse-wheel-(global-)text-scale increases or decreases the
> > text scale for every scroll event. I think it's a good idea to have an
> > option to buffer that (is that the right word?) so you can more easily
> > choose the text scale you want. I kept the default behavior intact.

Thanks, but isn't it better to control the amount of scaling by
changing the value of text-scale-mode-step instead?  Having to scroll
the wheel several clicks without any effect would be confusing, I
think.  And text-scale-mode-step is already a user variable that is
available for this purpose.  So maybe you should try decreasing the
default value to, say, 1.02, to see if that satisfies your needs.





^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#57140: New user option mouse-wheel-text-scale-buffer
  2022-08-11 13:28   ` Eli Zaretskii
@ 2022-08-11 15:23     ` Tyler Grinn
  2022-08-11 16:02       ` Eli Zaretskii
  0 siblings, 1 reply; 11+ messages in thread
From: Tyler Grinn @ 2022-08-11 15:23 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 57140

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Tyler Grinn <tylergrinn@gmail.com>
>> Date: Thu, 11 Aug 2022 09:20:39 -0400
>> 
>> > By default, mouse-wheel-(global-)text-scale increases or decreases the
>> > text scale for every scroll event. I think it's a good idea to have an
>> > option to buffer that (is that the right word?) so you can more easily
>> > choose the text scale you want. I kept the default behavior intact.
>
> Thanks, but isn't it better to control the amount of scaling by
> changing the value of text-scale-mode-step instead?  Having to scroll
> the wheel several clicks without any effect would be confusing, I
> think.  And text-scale-mode-step is already a user variable that is
> available for this purpose.  So maybe you should try decreasing the
> default value to, say, 1.02, to see if that satisfies your needs.

For some trackpads, controlling how many 'clicks' to scroll is quite
difficult. The step size fixes the issue of scrolling too fast, but I
still have trouble choosing the exact text scale I want. My preference
is still for a larger step size and throttling scroll events.


Thanks,

Tyler





^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#57140: New user option mouse-wheel-text-scale-buffer
  2022-08-11 15:23     ` Tyler Grinn
@ 2022-08-11 16:02       ` Eli Zaretskii
  2022-08-11 17:00         ` Tyler Grinn
  0 siblings, 1 reply; 11+ messages in thread
From: Eli Zaretskii @ 2022-08-11 16:02 UTC (permalink / raw)
  To: Tyler Grinn; +Cc: 57140

> From: Tyler Grinn <tylergrinn@gmail.com>
> Cc: 57140@debbugs.gnu.org
> Date: Thu, 11 Aug 2022 11:23:51 -0400
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > Thanks, but isn't it better to control the amount of scaling by
> > changing the value of text-scale-mode-step instead?  Having to scroll
> > the wheel several clicks without any effect would be confusing, I
> > think.  And text-scale-mode-step is already a user variable that is
> > available for this purpose.  So maybe you should try decreasing the
> > default value to, say, 1.02, to see if that satisfies your needs.
> 
> For some trackpads, controlling how many 'clicks' to scroll is quite
> difficult. The step size fixes the issue of scrolling too fast, but I
> still have trouble choosing the exact text scale I want. My preference
> is still for a larger step size and throttling scroll events.

Sorry, I don't understand why you need to count clicks.  Typically
when users change the text scale, they just turn the wheel until the
size they get fits their needs.  Making text-scale-mode-step smaller
causes finer changes, so it's easier to be more precise in finding the
desired scale.

Can you explain how your proposal makes it easier than that, and why?





^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#57140: New user option mouse-wheel-text-scale-buffer
  2022-08-11 16:02       ` Eli Zaretskii
@ 2022-08-11 17:00         ` Tyler Grinn
  2022-08-11 17:16           ` Eli Zaretskii
  0 siblings, 1 reply; 11+ messages in thread
From: Tyler Grinn @ 2022-08-11 17:00 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 57140

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Tyler Grinn <tylergrinn@gmail.com>
>> Cc: 57140@debbugs.gnu.org
>> Date: Thu, 11 Aug 2022 11:23:51 -0400
>> 
>> Eli Zaretskii <eliz@gnu.org> writes:
>> 
>> > Thanks, but isn't it better to control the amount of scaling by
>> > changing the value of text-scale-mode-step instead?  Having to scroll
>> > the wheel several clicks without any effect would be confusing, I
>> > think.  And text-scale-mode-step is already a user variable that is
>> > available for this purpose.  So maybe you should try decreasing the
>> > default value to, say, 1.02, to see if that satisfies your needs.
>> 
>> For some trackpads, controlling how many 'clicks' to scroll is quite
>> difficult. The step size fixes the issue of scrolling too fast, but I
>> still have trouble choosing the exact text scale I want. My preference
>> is still for a larger step size and throttling scroll events.
>
> Sorry, I don't understand why you need to count clicks.  Typically
> when users change the text scale, they just turn the wheel until the
> size they get fits their needs.  Making text-scale-mode-step smaller
> causes finer changes, so it's easier to be more precise in finding the
> desired scale.
>
> Can you explain how your proposal makes it easier than that, and why?

Sure, let me rephrase: for two-finger scrolling, it's hard to emit a
single scroll event. With a smaller step size it is easier to get it
close to the scale I want, but regardless of the step size, choosing an
exact text scale is difficult. This leads to buffers having slightly
different text scales.





^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#57140: New user option mouse-wheel-text-scale-buffer
  2022-08-11 17:00         ` Tyler Grinn
@ 2022-08-11 17:16           ` Eli Zaretskii
  2022-08-11 17:38             ` Tyler Grinn
  0 siblings, 1 reply; 11+ messages in thread
From: Eli Zaretskii @ 2022-08-11 17:16 UTC (permalink / raw)
  To: Tyler Grinn; +Cc: 57140

> From: Tyler Grinn <tylergrinn@gmail.com>
> Cc: 57140@debbugs.gnu.org
> Date: Thu, 11 Aug 2022 13:00:45 -0400
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> >> From: Tyler Grinn <tylergrinn@gmail.com>
> >> Cc: 57140@debbugs.gnu.org
> >> Date: Thu, 11 Aug 2022 11:23:51 -0400
> >> 
> >> Eli Zaretskii <eliz@gnu.org> writes:
> >> 
> >> > Thanks, but isn't it better to control the amount of scaling by
> >> > changing the value of text-scale-mode-step instead?  Having to scroll
> >> > the wheel several clicks without any effect would be confusing, I
> >> > think.  And text-scale-mode-step is already a user variable that is
> >> > available for this purpose.  So maybe you should try decreasing the
> >> > default value to, say, 1.02, to see if that satisfies your needs.
> >> 
> >> For some trackpads, controlling how many 'clicks' to scroll is quite
> >> difficult. The step size fixes the issue of scrolling too fast, but I
> >> still have trouble choosing the exact text scale I want. My preference
> >> is still for a larger step size and throttling scroll events.
> >
> > Sorry, I don't understand why you need to count clicks.  Typically
> > when users change the text scale, they just turn the wheel until the
> > size they get fits their needs.  Making text-scale-mode-step smaller
> > causes finer changes, so it's easier to be more precise in finding the
> > desired scale.
> >
> > Can you explain how your proposal makes it easier than that, and why?
> 
> Sure, let me rephrase: for two-finger scrolling, it's hard to emit a
> single scroll event. With a smaller step size it is easier to get it
> close to the scale I want, but regardless of the step size, choosing an
> exact text scale is difficult. This leads to buffers having slightly
> different text scales.

If that's the problem, shouldn't that be handled by techniques we use
in precision-scrolling?





^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#57140: New user option mouse-wheel-text-scale-buffer
  2022-08-11 17:16           ` Eli Zaretskii
@ 2022-08-11 17:38             ` Tyler Grinn
  2022-08-11 17:47               ` Eli Zaretskii
  0 siblings, 1 reply; 11+ messages in thread
From: Tyler Grinn @ 2022-08-11 17:38 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 57140

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Tyler Grinn <tylergrinn@gmail.com>
>> Cc: 57140@debbugs.gnu.org
>> Date: Thu, 11 Aug 2022 13:00:45 -0400
>> 
>> Eli Zaretskii <eliz@gnu.org> writes:
>> 
>> >> From: Tyler Grinn <tylergrinn@gmail.com>
>> >> Cc: 57140@debbugs.gnu.org
>> >> Date: Thu, 11 Aug 2022 11:23:51 -0400
>> >> 
>> >> Eli Zaretskii <eliz@gnu.org> writes:
>> >> 
>> >> > Thanks, but isn't it better to control the amount of scaling by
>> >> > changing the value of text-scale-mode-step instead?  Having to scroll
>> >> > the wheel several clicks without any effect would be confusing, I
>> >> > think.  And text-scale-mode-step is already a user variable that is
>> >> > available for this purpose.  So maybe you should try decreasing the
>> >> > default value to, say, 1.02, to see if that satisfies your needs.
>> >> 
>> >> For some trackpads, controlling how many 'clicks' to scroll is quite
>> >> difficult. The step size fixes the issue of scrolling too fast, but I
>> >> still have trouble choosing the exact text scale I want. My preference
>> >> is still for a larger step size and throttling scroll events.
>> >
>> > Sorry, I don't understand why you need to count clicks.  Typically
>> > when users change the text scale, they just turn the wheel until the
>> > size they get fits their needs.  Making text-scale-mode-step smaller
>> > causes finer changes, so it's easier to be more precise in finding the
>> > desired scale.
>> >
>> > Can you explain how your proposal makes it easier than that, and why?
>> 
>> Sure, let me rephrase: for two-finger scrolling, it's hard to emit a
>> single scroll event. With a smaller step size it is easier to get it
>> close to the scale I want, but regardless of the step size, choosing an
>> exact text scale is difficult. This leads to buffers having slightly
>> different text scales.
>
> If that's the problem, shouldn't that be handled by techniques we use
> in precision-scrolling?

Could you expand on that?





^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#57140: New user option mouse-wheel-text-scale-buffer
  2022-08-11 17:38             ` Tyler Grinn
@ 2022-08-11 17:47               ` Eli Zaretskii
  2022-08-11 19:24                 ` Tyler Grinn
  0 siblings, 1 reply; 11+ messages in thread
From: Eli Zaretskii @ 2022-08-11 17:47 UTC (permalink / raw)
  To: Tyler Grinn; +Cc: 57140

> From: Tyler Grinn <tylergrinn@gmail.com>
> Cc: 57140@debbugs.gnu.org
> Date: Thu, 11 Aug 2022 13:38:53 -0400
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> >> Sure, let me rephrase: for two-finger scrolling, it's hard to emit a
> >> single scroll event. With a smaller step size it is easier to get it
> >> close to the scale I want, but regardless of the step size, choosing an
> >> exact text scale is difficult. This leads to buffers having slightly
> >> different text scales.
> >
> > If that's the problem, shouldn't that be handled by techniques we use
> > in precision-scrolling?
> 
> Could you expand on that?

Are you familiar with pixel-scroll-precision-mode?





^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#57140: New user option mouse-wheel-text-scale-buffer
  2022-08-11 17:47               ` Eli Zaretskii
@ 2022-08-11 19:24                 ` Tyler Grinn
  2022-08-12  5:36                   ` Eli Zaretskii
  0 siblings, 1 reply; 11+ messages in thread
From: Tyler Grinn @ 2022-08-11 19:24 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 57140

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Tyler Grinn <tylergrinn@gmail.com>
>> Cc: 57140@debbugs.gnu.org
>> Date: Thu, 11 Aug 2022 13:38:53 -0400
>> 
>> Eli Zaretskii <eliz@gnu.org> writes:
>> 
>> >> Sure, let me rephrase: for two-finger scrolling, it's hard to emit a
>> >> single scroll event. With a smaller step size it is easier to get it
>> >> close to the scale I want, but regardless of the step size, choosing an
>> >> exact text scale is difficult. This leads to buffers having slightly
>> >> different text scales.
>> >
>> > If that's the problem, shouldn't that be handled by techniques we use
>> > in precision-scrolling?
>> 
>> Could you expand on that?
>
> Are you familiar with pixel-scroll-precision-mode?

Yes, but it's unclear which techniques you're referring to, or what is
lacking from the proposed behavior.





^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#57140: New user option mouse-wheel-text-scale-buffer
  2022-08-11 19:24                 ` Tyler Grinn
@ 2022-08-12  5:36                   ` Eli Zaretskii
  0 siblings, 0 replies; 11+ messages in thread
From: Eli Zaretskii @ 2022-08-12  5:36 UTC (permalink / raw)
  To: Tyler Grinn; +Cc: 57140

> From: Tyler Grinn <tylergrinn@gmail.com>
> Cc: 57140@debbugs.gnu.org
> Date: Thu, 11 Aug 2022 15:24:33 -0400
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> >> From: Tyler Grinn <tylergrinn@gmail.com>
> >> Cc: 57140@debbugs.gnu.org
> >> Date: Thu, 11 Aug 2022 13:38:53 -0400
> >> 
> >> Eli Zaretskii <eliz@gnu.org> writes:
> >> 
> >> >> Sure, let me rephrase: for two-finger scrolling, it's hard to emit a
> >> >> single scroll event. With a smaller step size it is easier to get it
> >> >> close to the scale I want, but regardless of the step size, choosing an
> >> >> exact text scale is difficult. This leads to buffers having slightly
> >> >> different text scales.
> >> >
> >> > If that's the problem, shouldn't that be handled by techniques we use
> >> > in precision-scrolling?
> >> 
> >> Could you expand on that?
> >
> > Are you familiar with pixel-scroll-precision-mode?
> 
> Yes, but it's unclear which techniques you're referring to, or what is
> lacking from the proposed behavior.

I refer to that mode's use of mwheel-coalesce-scroll-events and the
pixel-scroll-precision-* variables.  That uses underlying capabilities
of using high-precision mouse events which are new in Emacs 29.





^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2022-08-12  5:36 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-11 13:10 bug#57140: New user option mouse-wheel-text-scale-buffer Tyler Grinn
2022-08-11 13:20 ` Tyler Grinn
2022-08-11 13:28   ` Eli Zaretskii
2022-08-11 15:23     ` Tyler Grinn
2022-08-11 16:02       ` Eli Zaretskii
2022-08-11 17:00         ` Tyler Grinn
2022-08-11 17:16           ` Eli Zaretskii
2022-08-11 17:38             ` Tyler Grinn
2022-08-11 17:47               ` Eli Zaretskii
2022-08-11 19:24                 ` Tyler Grinn
2022-08-12  5:36                   ` Eli Zaretskii

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).