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
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`
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]
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
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
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
6 matches
Mail list logo