[vw7.4] ScrollBar non-linearity

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[vw7.4] ScrollBar non-linearity

Milan Čermák
Hi all,
I discovered wierd scroll bar behavior. Up to approx. 3/4 of the path,
the marker follows mouse pointer perfectly (or nearly perfectly). But on
the last quarter, the marker speeds up twice. Closer to the right bottom
corner of the window, longer path speed up takes place. Also position of
mouse pointer on marker affects this.
This behavior can be seen even on plain "visual" image in
RefactoringBrowser when showing really long method. I tried that on
Linux and on Windows with different looks and the behavior persists.

The problem seems to be in Scrollbar>>#mapToDataSpace:. Method result
takes maximum from two linear functions. The second function (passed as
argument to max:) grows twice faster and makes scroll bar marker move
faster than mouse pointer.
Commenting this function out seems to solve the problem but I'm not sure
if this will brake something else.

Regards,
--
Ing. Milan Čermák
programátor, analytik

[hidden email]

................................................................
e-FRACTAL, s.r.o. => e-business driven company
nám. Míru 15, Praha 2, http://www.e-fractal.cz
tel: 222 512 000, fax: 222 515 000
................................................................

Reply | Threaded
Open this post in threaded view
|

Re: [vw7.4] ScrollBar non-linearity

Alan Knight-2
Thanks. I've created AR 50996 for this.

At 07:29 AM 7/14/2006, =?ISO-8859-2?Q?Milan_=C8erm=E1k?= wrote:

>Hi all,
>I discovered wierd scroll bar behavior. Up to approx. 3/4 of the path,
>the marker follows mouse pointer perfectly (or nearly perfectly). But on
>the last quarter, the marker speeds up twice. Closer to the right bottom
>corner of the window, longer path speed up takes place. Also position of
>mouse pointer on marker affects this.
>This behavior can be seen even on plain "visual" image in
>RefactoringBrowser when showing really long method. I tried that on
>Linux and on Windows with different looks and the behavior persists.
>
>The problem seems to be in Scrollbar>>#mapToDataSpace:. Method result
>takes maximum from two linear functions. The second function (passed as
>argument to max:) grows twice faster and makes scroll bar marker move
>faster than mouse pointer.
>Commenting this function out seems to solve the problem but I'm not sure
>if this will brake something else.
>
>Regards,
>--
>Ing. Milan Èermák
>programátor, analytik
>
>[hidden email]
>
>................................................................
>e-FRACTAL, s.r.o. => e-business driven company
>nám. Míru 15, Praha 2, http://www.e-fractal.cz
>tel: 222 512 000, fax: 222 515 000
>................................................................

--
Alan Knight [|], Cincom Smalltalk Development
[hidden email]
[hidden email]
http://www.cincom.com/smalltalk

"The Static Typing Philosophy: Make it fast. Make it right. Make it run." - Niall Ross