From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Steven Tamm Newsgroups: gmane.emacs.devel Subject: Re: Strange behaviour of scrollbars on MacOSX Date: Sun, 2 May 2004 22:33:28 -0700 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <67F771FC-9CC3-11D8-BE34-00039390AB82@mac.com> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (Apple Message framework v613) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1083562636 18816 80.91.224.253 (3 May 2004 05:37:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 3 May 2004 05:37:16 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon May 03 07:37:09 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BKW8b-0005rc-00 for ; Mon, 03 May 2004 07:37:09 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BKW8a-0008Iy-00 for ; Mon, 03 May 2004 07:37:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BKW5l-0002gs-Ps for emacs-devel@quimby.gnus.org; Mon, 03 May 2004 01:34:13 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BKW5g-0002gJ-Dj for emacs-devel@gnu.org; Mon, 03 May 2004 01:34:08 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BKW5A-0002Y4-Jt for emacs-devel@gnu.org; Mon, 03 May 2004 01:34:07 -0400 Original-Received: from [17.250.248.87] (helo=smtpout.mac.com) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BKW5A-0002Xu-7c for emacs-devel@gnu.org; Mon, 03 May 2004 01:33:36 -0400 Original-Received: from mac.com (smtpin08-en2 [10.13.10.153]) by smtpout.mac.com (Xserve/MantshX 2.0) with ESMTP id i435XWeg003293; Sun, 2 May 2004 22:33:32 -0700 (PDT) Original-Received: from [10.0.1.201] (c-24-5-11-73.client.comcast.net [24.5.11.73]) (authenticated bits=0) by mac.com (Xserve/smtpin08/MantshX 3.0) with ESMTP id i435XVTK016343; Sun, 2 May 2004 22:33:31 -0700 (PDT) In-Reply-To: Original-To: Piet van Oostrum X-Mailer: Apple Mail (2.613) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:22576 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:22576 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 > 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