unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: David Kastrup <dak@gnu.org>
Cc: David Reitter <david.reitter@gmail.com>,
	emacs-devel@gnu.org, Stefan Monnier <monnier@iro.umontreal.ca>,
	miles@gnu.org
Subject: Re: Scrollbar bug on OS X
Date: Thu, 07 Apr 2005 00:25:10 +0200	[thread overview]
Message-ID: <x5ekdnczll.fsf@lola.goethe.zz> (raw)
In-Reply-To: <fc339e4a05040615073f33a9bd@mail.gmail.com> (Miles Bader's message of "Thu, 7 Apr 2005 07:07:07 +0900")

Miles Bader <snogglethorpe@gmail.com> writes:

> On Apr 6, 2005 11:32 PM, David Reitter <david.reitter@gmail.com> wrote:
>> that I'd like to implement in order to conform to standards in my
>> environment, the vertical slider size shows a proportion of _ displayed
>> lines_ not document characters or real lines (those that end with a CR
>> or LF). Whether that is better or not, I don't know, but what I do know
>> is that a) "less visual change on the screen is more", and that b) both
>> Windows and Mac software has sliders with a stable size.
>
> The only way I can see to truly have stable scroll-bar size is to
> base the size calculation on displayed pixels (lines are not
> necessarily a constant height, so the number of displayed lines is
> not a fixed proportion of total lines in the document).

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.

> I'm curious how _any_ program manages to do this calculation in a
> reasonable amount of time; do they really lay-out the _entire_
> document ahead of time?  Do they use some sort of heuristic instead?
> What happens when the heuristic fails?

What should happen?  The user will correct over/undershoot, probably
not even considering that the computer could be at fault.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

  reply	other threads:[~2005-04-06 22:25 UTC|newest]

Thread overview: 54+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-03 10:37 Aquamacs distro for OS X like behavior David Reitter
2005-04-04 11:40 ` David Kastrup
2005-04-04 14:02   ` David Reitter
2005-04-04 17:28     ` Stefan Monnier
2005-04-04 17:47       ` David Kastrup
2005-04-04 23:27         ` David Reitter
2005-04-05  0:02           ` David Kastrup
2005-04-05 14:58           ` Stefan Monnier
2005-04-06 13:03             ` David Reitter
2005-04-06 14:08               ` Stefan Monnier
2005-04-06 14:32                 ` Scrollbar bug on OS X (was: Aquamacs distro for OS X like behavior) David Reitter
2005-04-06 17:14                   ` Scrollbar bug on OS X Stefan Monnier
2005-04-06 22:07                   ` Scrollbar bug on OS X (was: Aquamacs distro for OS X like behavior) Miles Bader
2005-04-06 22:25                     ` David Kastrup [this message]
2005-04-06 22:51                       ` Scrollbar bug on OS X Stefan Monnier
2005-04-07 18:27                         ` Richard Stallman
2005-04-07 19:26                           ` Stefan Monnier
2005-04-07 19:30                             ` David Kastrup
2005-04-07 19:46                               ` Jan D.
2005-04-07 19:59                               ` David Reitter
2005-04-08  2:05                                 ` Miles Bader
2005-04-08 11:31                                   ` David Reitter
2005-04-08 12:42                                 ` Stefan Monnier
2005-04-08 13:12                                   ` David Reitter
2005-04-08 14:08                                     ` Stefan Monnier
2005-04-08 15:46                                   ` Kevin Rodgers
2005-04-09  8:04                                     ` Eli Zaretskii
2005-04-09 16:04                                       ` Luc Teirlinck
2005-04-09 16:46                                         ` Miles Bader
2005-04-09 17:02                                           ` Luc Teirlinck
2005-04-09 16:18                                       ` Luc Teirlinck
2005-04-11 18:22                                       ` Kevin Rodgers
2005-04-07 19:41                           ` Jan D.
2005-04-08 14:32                             ` Richard Stallman
2005-04-08 14:50                               ` Stefan Monnier
2005-04-10  1:54                                 ` Richard Stallman
2005-04-10  5:53                                   ` Jan D.
2005-04-10 10:58                                     ` Miles Bader
2005-04-11  1:56                                     ` Richard Stallman
2005-04-06 22:44                     ` Stefan Monnier
2005-04-06 16:17                 ` Scrollbar size flaky on OS X (was: Aquamacs distro for OS X like behavior) David Reitter
2005-04-06 17:19                   ` Scrollbar size flaky on OS X Stefan Monnier
2005-04-05 19:07           ` Aquamacs distro for OS X like behavior Richard Stallman
2005-04-05 19:25             ` Lennart Borgman
2005-04-06 14:59               ` Richard Stallman
2005-04-06 16:20                 ` David Kastrup
2005-04-07 18:27                   ` Richard Stallman
2005-04-07 22:24                     ` Lennart Borgman
2005-04-08  9:17                       ` Johan Vromans
2005-04-08  9:50                         ` David Reitter
2005-04-09  3:38                           ` Richard Stallman
2005-04-05  4:22         ` Richard Stallman
2005-04-04 18:25   ` Aidan Kehoe
2005-04-04 21:01     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=x5ekdnczll.fsf@lola.goethe.zz \
    --to=dak@gnu.org \
    --cc=david.reitter@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=miles@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).