From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: charles@aurox.ch (Charles A. Roelli) Newsgroups: gmane.emacs.bugs Subject: bug#29053: 26.0.90: scroller cannot be dragged to bottom of window Date: Sat, 04 Nov 2017 10:57:12 +0100 Message-ID: References: <837eveuosx.fsf@gnu.org> <20171101165234.GA78963@breton.holly.idiocy.org> <20171102225425.GA96127@breton.holly.idiocy.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1509789372 21235 195.159.176.226 (4 Nov 2017 09:56:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 4 Nov 2017 09:56:12 +0000 (UTC) Cc: 29053-done@debbugs.gnu.org To: Alan Third Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 04 10:56:08 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eAvBN-00056O-Iz for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Nov 2017 10:56:05 +0100 Original-Received: from localhost ([::1]:40285 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eAvBU-0003Vg-Sb for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Nov 2017 05:56:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58158) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eAvBO-0003UQ-Ag for bug-gnu-emacs@gnu.org; Sat, 04 Nov 2017 05:56:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eAvBL-00066g-7V for bug-gnu-emacs@gnu.org; Sat, 04 Nov 2017 05:56:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41495) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eAvBL-00066M-2i for bug-gnu-emacs@gnu.org; Sat, 04 Nov 2017 05:56:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eAvBK-0005OM-Mf for bug-gnu-emacs@gnu.org; Sat, 04 Nov 2017 05:56:02 -0400 Resent-From: charles@aurox.ch (Charles A. Roelli) Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Nov 2017 09:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 29053 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 29053@debbugs.gnu.org, charles@aurox.ch, charles@aurox.ch Original-Received: via spool by 29053-done@debbugs.gnu.org id=D29053.150978934720699 (code D ref 29053); Sat, 04 Nov 2017 09:56:02 +0000 Original-Received: (at 29053-done) by debbugs.gnu.org; 4 Nov 2017 09:55:47 +0000 Original-Received: from localhost ([127.0.0.1]:50174 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eAvB4-0005Nn-Mx for submit@debbugs.gnu.org; Sat, 04 Nov 2017 05:55:46 -0400 Original-Received: from sinyavsky.aurox.ch ([37.35.109.145]:38221) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eAvB3-0005Na-Bo for 29053-done@debbugs.gnu.org; Sat, 04 Nov 2017 05:55:45 -0400 Original-Received: from sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) by sinyavsky.aurox.ch (Postfix) with ESMTP id 382C0225A9 for <29053-done@debbugs.gnu.org>; Sat, 4 Nov 2017 09:48:40 +0000 (UTC) Authentication-Results: sinyavsky.aurox.ch (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=aurox.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aurox.ch; h= content-transfer-encoding:content-type:content-type:mime-version :references:subject:subject:in-reply-to:to:from:from:message-id :date:date; s=dkim; t=1509788918; x=1510652919; bh=QNQpTKm6lyagM o1p8FQV9chVCSz/7i0/m/z3teqXp3U=; b=XAj6DvJkRWqpxw/xSzROr3W5SySMs PPQ/vb5V2zd2veHd35TnaTYk3CKEfWu7lk5BZQT+1+l6XE7a3YPQ/ILIrGyFU4GN vutHEo1H0CnakD4GjOnu0cBNWMeXU1IfGpFt/pybdRy3QuJbHUM1VAgWln+Ub8Rs AWk1y9AQ2lG11I= X-Virus-Scanned: Debian amavisd-new at test.virtualizor.com Original-Received: from sinyavsky.aurox.ch ([127.0.0.1]) by sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id OCcM2XEwQzjc for <29053-done@debbugs.gnu.org>; Sat, 4 Nov 2017 09:48:38 +0000 (UTC) Original-Received: from gray (125.85.192.178.dynamic.wline.res.cust.swisscom.ch [178.192.85.125]) by sinyavsky.aurox.ch (Postfix) with ESMTPSA id 0C56F22599; Sat, 4 Nov 2017 09:48:36 +0000 (UTC) In-reply-to: <20171102225425.GA96127@breton.holly.idiocy.org> (message from Alan Third on Thu, 2 Nov 2017 22:54:25 +0000) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:139430 Archived-At: > Date: Thu, 2 Nov 2017 22:54:25 +0000 > From: Alan Third > > On Wed, Nov 01, 2017 at 09:43:46PM +0100, Charles A. Roelli wrote: > > > Date: Wed, 1 Nov 2017 16:52:34 +0000 > > > From: Alan Third > > > > > > On Tue, Oct 31, 2017 at 10:12:47PM +0100, Charles A. Roelli wrote: > > > > (mouseDragged): Handle horizontal case. Call sendScrollEventAtLoc with > > > > absolute pixel size instead of ratio. > > > > > > The problem is most likely in here. > > > > > > > Does 10.6 have buttons to click at the top and/or bottom of the > > > scrollbar? If so they might affect the offset. > > > > It has two buttons (up and down), at the bottom of the scrollbar. > > When I drag the scroller as far down as possible, the distance between > > the bottom of the scroller and the pointer (which should be zero) > > looks about the same as the total height of the two buttons, so I > > think you're right. > > It was this. Emacs expects the scroller slot to be the same number of > pixels as the whole scroller takes up. When there are buttons within > the scroller area then the slot is smaller. > > On modern macOS versions because there are no buttons the use of a > ratio looked silly, but when there are buttons (like on GNUstep too) > then the ratio makes more sense. I shouldn’t have changed it. > > I’ve pushed a fix. It works on GNUstep, so I expect it will work for > you too. > -- > Alan Third Thanks very much Alan, it now works well. I'm closing the bug.