[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scrollbar bug on OS X

From: Stefan Monnier
Subject: Re: Scrollbar bug on OS X
Date: Wed, 06 Apr 2005 18:51:54 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> I think you are laboring under the delusion that the scroll bar
> actually displays something sensible, namely that mouse-2 exactly at
> the bottom of the slider will take you exactly one page of screen
> material further.  I think you'll find that users are much less
> surprised if this goal is not exactly established than if the slider
> grows and shrinks in size.  So the solution is to base the slider size
> on some more-or-less sensible metric like lines-in-file (where
> available) to lines-on-screen, and anyway, don't muck with it while
> dragging.

That's what the code does with the Motif scrollbar, BTW.
I think it's also what's used with Gtk.


PS: The only problem is that those toolkits have the idiotic idea to enforce
that the bottom of the thumb cannot go further than the bottom.  And they
enforce it by hiding the events corresponding to "user moves the mouse
yet-further-down".  I.e. they're throwing away valuable information before
the application can even decide whether it's indeed useless or not.
It's idiotic because it requires *more* code in the toolkit and has as its
only effect to reduce the flexibility of the toolkit.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]