unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Steven Tamm <steventamm@mac.com>
Cc: emacs-devel@gnu.org
Subject: Re: Strange behaviour of scrollbars on MacOSX
Date: Sun, 2 May 2004 22:33:28 -0700	[thread overview]
Message-ID: <67F771FC-9CC3-11D8-BE34-00039390AB82@mac.com> (raw)
In-Reply-To: <wzfzajgj39.fsf@Ordesa.local>

The scrollbar thumb code is the most tetchy of the gui code.  It is 
trying to emulate the "Mac" way of doing things by modifications to the 
NT scroll-bar code.  But it is very difficult to handle the thumb 
correctly.  This is because Carbon "wants" you to use 
TrackMousePosition and block waiting for a change in the mouse.  
Instead we are doing the thumb handling by hand.

For example, it responds differently to a "hold" on the thumb vs. a 
"click" on the thumb.  Try it and you'll see.  There's a bug there 
someplace, and I would suspect it's someplace in 
x_scroll_bar_report_motion.   I couldn't get a real stack trace for the 
call to report_motion (from XTmouse_position)

I can't debug this just now; if anyone can help it would be much 
appreciated.

-Steven

On May 2, 2004, at 4:32 AM, Piet van Oostrum wrote:

> With CVS Carbon Emacs on MacOSX the scrollbars behave quite strangely
> compared to other MacOSX applications, and I would say, probably 
> strange
> compared to other OSs.
>
> In another application when you click on the blue slider in the 
> scrollbar
> and don't move the mouse, everything stays as it was, no scrolling 
> takes
> place. On MacOSX, however, when you do this, either the scrollbar 
> changes
> position (just when you click on it) or the scrollbar stays put but the
> text scrolls. Sometimes it is possible to scroll through your buffer
> (probably with gaps) with repeatedly clicking on the same location in 
> the
> slider without moving the mouse. Sometimes it goes back and forth. I 
> know
> that emacs has different ideas about scrollbars but is there a way to 
> get
> the same behaviour as other apps?
> -- 
> Piet van Oostrum <piet@cs.uu.nl>
> URL: http://www.cs.uu.nl/~piet [PGP]
> Private email: P.van.Oostrum@hccnet.nl
>
>
> _______________________________________________
> Emacs-devel mailing list
> Emacs-devel@gnu.org
> http://mail.gnu.org/mailman/listinfo/emacs-devel

      reply	other threads:[~2004-05-03  5:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-02 11:32 Strange behaviour of scrollbars on MacOSX Piet van Oostrum
2004-05-03  5:33 ` Steven Tamm [this message]

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=67F771FC-9CC3-11D8-BE34-00039390AB82@mac.com \
    --to=steventamm@mac.com \
    --cc=emacs-devel@gnu.org \
    /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).