From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Third Newsgroups: gmane.emacs.bugs Subject: bug#29053: 26.0.90: scroller cannot be dragged to bottom of window Date: Thu, 2 Nov 2017 22:54:25 +0000 Message-ID: <20171102225425.GA96127@breton.holly.idiocy.org> References: <837eveuosx.fsf@gnu.org> <20171101165234.GA78963@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 1509663321 6589 195.159.176.226 (2 Nov 2017 22:55:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 2 Nov 2017 22:55:21 +0000 (UTC) User-Agent: Mutt/1.9.1 (2017-09-22) Cc: 29053@debbugs.gnu.org To: "Charles A. Roelli" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 02 23:55:12 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 1eAOOD-0000hn-4Y for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 Nov 2017 23:55:09 +0100 Original-Received: from localhost ([::1]:34152 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eAOOH-0007X3-6f for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 Nov 2017 18:55:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35469) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eAOOB-0007Ww-VD for bug-gnu-emacs@gnu.org; Thu, 02 Nov 2017 18:55:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eAOO7-00049i-NP for bug-gnu-emacs@gnu.org; Thu, 02 Nov 2017 18:55:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39714) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eAOO7-000490-IF for bug-gnu-emacs@gnu.org; Thu, 02 Nov 2017 18:55:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eAOO6-00045h-Fs for bug-gnu-emacs@gnu.org; Thu, 02 Nov 2017 18:55:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Nov 2017 22:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29053 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 29053-submit@debbugs.gnu.org id=B29053.150966327815690 (code B ref 29053); Thu, 02 Nov 2017 22:55:02 +0000 Original-Received: (at 29053) by debbugs.gnu.org; 2 Nov 2017 22:54:38 +0000 Original-Received: from localhost ([127.0.0.1]:48395 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eAONg-00044x-LN for submit@debbugs.gnu.org; Thu, 02 Nov 2017 18:54:36 -0400 Original-Received: from mail-wm0-f47.google.com ([74.125.82.47]:50404) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eAONd-00044j-Pp for 29053@debbugs.gnu.org; Thu, 02 Nov 2017 18:54:34 -0400 Original-Received: by mail-wm0-f47.google.com with SMTP id s66so1783615wmf.5 for <29053@debbugs.gnu.org>; Thu, 02 Nov 2017 15:54:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=fznnlCXKHlbYbYHhuCFXcAiBjhQfSXiK1nZceJ7jgcI=; b=D0ADL0x0RR03P+jDFpa5F6fgv4CqPy5VMORWwri/GIVhIE8Nx0fvtzTH9i+H4SrmV3 oGhxPRaNAOZtSu6e8AHqAiX4MYfJzDh8ePRb4Wo5S90m0HvTNhGSzv4Z1SanPNDOdJj7 fnsL+hAs1KNS3XFVQ1OZuwJikW98w36KNGLitp36NJ2gQcX0EGRmCiAxVjiZqkpQoKDw 31LSWCNsoSyq5APXEmifopMbBaUVxWz2lAWQ3gRnGfT8Y9/7MQUH3eNhgArKa2J7Osgo tRVCoY2ODv3NuF2djOO4hbxSwtxD7o4fAiPpn0+/RQkq3SrT1rJfAQ4AxEvXX+JMHXcS x8lQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=fznnlCXKHlbYbYHhuCFXcAiBjhQfSXiK1nZceJ7jgcI=; b=IGgzD2+hjed3I2BxeSSmzu+8dlrJlBGTEtzrFquPd80Xyt4eMo8E4la0jzAKUih/92 xYJrov7n/IqE7kIIqH/CguBySpqRkl/0QUUpPdddrZ04MbF7VoIFaHfSlFKslMS532rv LFowxnVId9b5wgwAgoYZBVoVHTxSNuMZHBWm6XuEWpjDQOlX7DCb5UvAgkWsQmqI6dQQ I/rnS9yq++0HHYhkrx0vxXjjgAzU0uoAkozTGD+TeIay3zYlCHPLeiJUhJU6Y8jOKDJx XhnZFSQ9dZTAoORvIyZNBBd5ApSa8pJqFWWUev1bJ4FCe5dk+lvQPedyNoiQyBVlk0vv 7rUA== X-Gm-Message-State: AMCzsaX5JFUPz8Umh3vHgU1glzxGNOuPX0k1wPBLZdtVZa+rZgfOxuB8 tAn61RVOVeVm93iKQ2+mS5ejokEQ X-Google-Smtp-Source: ABhQp+T3QRp9j4So+3t0fJ//N2EANv4AKTg0aomEtsMa9xegWSQSxEibbhdwwEAwB622x9S/8Wlg5Q== X-Received: by 10.28.125.206 with SMTP id y197mr3135116wmc.85.1509663267910; Thu, 02 Nov 2017 15:54:27 -0700 (PDT) Original-Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-a9d9-6fbf-2bbc-5fcc.holly.idiocy.org. [2001:8b0:3f8:8129:a9d9:6fbf:2bbc:5fcc]) by smtp.gmail.com with ESMTPSA id m201sm471998wma.12.2017.11.02.15.54.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Nov 2017 15:54:27 -0700 (PDT) Content-Disposition: inline In-Reply-To: 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:139380 Archived-At: 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