From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#32002: 24.4; Scroll bar start, end not correct Date: Sat, 14 Jul 2018 09:49:00 +0300 Message-ID: <83r2k6b9cz.fsf@gnu.org> References: <8280.1531544200@alto> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1531550892 4117 195.159.176.226 (14 Jul 2018 06:48:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 14 Jul 2018 06:48:12 +0000 (UTC) Cc: 32002@debbugs.gnu.org, kurn@sfu.ca To: Mike Kupfer Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 14 08:48:08 2018 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 1feELg-0000v1-6n for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Jul 2018 08:48:08 +0200 Original-Received: from localhost ([::1]:40337 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1feENl-0001fP-LK for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Jul 2018 02:50:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41640) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1feENb-0001f8-92 for bug-gnu-emacs@gnu.org; Sat, 14 Jul 2018 02:50:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1feENW-0000a2-Tw for bug-gnu-emacs@gnu.org; Sat, 14 Jul 2018 02:50:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51552) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1feENW-0000Zw-Pj for bug-gnu-emacs@gnu.org; Sat, 14 Jul 2018 02:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1feENW-0003uw-Gn for bug-gnu-emacs@gnu.org; Sat, 14 Jul 2018 02:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 Jul 2018 06:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32002 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed Original-Received: via spool by 32002-submit@debbugs.gnu.org id=B32002.153155094714984 (code B ref 32002); Sat, 14 Jul 2018 06:50:02 +0000 Original-Received: (at 32002) by debbugs.gnu.org; 14 Jul 2018 06:49:07 +0000 Original-Received: from localhost ([127.0.0.1]:59449 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1feEMc-0003tc-TC for submit@debbugs.gnu.org; Sat, 14 Jul 2018 02:49:07 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50502) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1feEMb-0003t8-5i for 32002@debbugs.gnu.org; Sat, 14 Jul 2018 02:49:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1feEMS-0008Lq-S3 for 32002@debbugs.gnu.org; Sat, 14 Jul 2018 02:48:59 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38952) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1feEMS-0008Lf-O0; Sat, 14 Jul 2018 02:48:56 -0400 Original-Received: from [176.228.60.248] (port=1152 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1feEMS-00042K-5t; Sat, 14 Jul 2018 02:48:56 -0400 In-reply-to: <8280.1531544200@alto> (message from Mike Kupfer on Fri, 13 Jul 2018 21:56:40 -0700) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:148514 Archived-At: > From: Mike Kupfer > cc: Andrew Kurn , 32002@debbugs.gnu.org > Date: Fri, 13 Jul 2018 21:56:40 -0700 > > With > > (setq scroll-bar-adjust-thumb-portion nil) > > the thumb takes up the entire track. (I'm doing this testing with a > theme that lacks steppers.) Moving the mouse down (while holding > button1) does not move the thumb, but it does cause the text to scroll > up. Moving the mouse up (while holding button1) does not cause the text > to reappear, even if I move the mouse all the way to the top of the > thumb. > > > Does Emacs receive > > scroll-bar scroll events when you do that (you can verify that with > > "C-h l")? > > Yes (at least for my test scenario). Which part of scroll-bar-toolkit-scroll gets executed when you move the thumb up, after scrolling the entire text out of the window? Is it this: ((eq part 'up) (scroll-up -1)) or this: ((eq part 'handle) (scroll-bar-drag-1 event)))) My guess is the latter, in which case I think the problem is in scroll-bar-drag-1. Can you spot it? I think it calculates the new starting point of the window incorrectly, because it doesn't take into account the special situation with scroll-bar-adjust-thumb-portion in this particular case. Thanks.