Re: [racket-users] Wheel / touchpad / trackpoint accuracy/speed scrolling fix for DrRacket

2021-04-16 Thread Dexter Lagan
Yes! Thank you. Dex From: Matthew Flatt Sent: Friday, April 16, 2021 3:26:19 PM To: Dexter Lagan Cc: Racket Users Subject: Re: [racket-users] Wheel / touchpad / trackpoint accuracy/speed scrolling fix for DrRacket Oh, I think I finally get it. The problem

Re: [racket-users] Wheel / touchpad / trackpoint accuracy/speed scrolling fix for DrRacket

2021-04-16 Thread Matthew Flatt
Oh, I think I finally get it. The problem is that the leftover amount is returned by `gen-wheels`. With scaling by `wheel-scale`, the returned leftover has been scaled --- but when the leftover is passed back to `gen-wheels` later, it gets scaled again. Applying the scale to `WHEEL_DELTA`

Re: [racket-users] Wheel / touchpad / trackpoint accuracy/speed scrolling fix for DrRacket

2021-04-16 Thread Dexter Lagan
Hi Matt, This works because when amt is smaller than WHEEL_DELTA, the amt value is used directly, see first branch of the cond : (cond * [((abs amt) . < . WHEEL_DELTA_S)* (case wheel-steps-mode [(one integer) amt]

Re: [racket-users] Wheel / touchpad / trackpoint accuracy/speed scrolling fix for DrRacket

2021-04-15 Thread Dexter Lagan
itself changes the values and/or behaviour. Dex From: Matthew Flatt Sent: Thursday, April 15, 2021 1:49:49 PM To: Dexter Lagan Cc: Racket Users Subject: Re: [racket-users] Wheel / touchpad / trackpoint accuracy/speed scrolling fix for DrRacket Thanks

Re: [racket-users] Wheel / touchpad / trackpoint accuracy/speed scrolling fix for DrRacket

2021-04-15 Thread Matthew Flatt
Thanks for this summary! But I remain puzzled... As I understand it, `wheel-scale` ends up being 4 on your machine. So removing the multiplication by `wheel-scale` means that `amt` is 1/4 of what it used to be. But `amt` is effectively always divided by `WHEEL_DELTA`, which you've also divided by

[racket-users] Wheel / touchpad / trackpoint accuracy/speed scrolling fix for DrRacket

2021-04-12 Thread Dexter Lagan
I started a new thread as the original topic no longer matched. I installed 8.1.0.2 x64 CS and enabled logging in gen-wheels. Matt was right: wheel-steps-mode is indeed set to 'integer while gen-wheels runs in DrRacket's editor. The only two changes required to get smooth/accurate scrolling