From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tak Kunihiro Newsgroups: gmane.emacs.devel Subject: Re: Smoother macOS touchpad scrolling Date: Sun, 10 Sep 2017 10:20:56 +0900 Message-ID: <86ingrl56v.fsf@misasa.okayama-u.ac.jp> References: <20170908184634.GA20058@breton.holly.idiocy.org> <86y3pox258.fsf@misasa.okayama-u.ac.jp> <20170909081805.GA20275@breton.holly.idiocy.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1505006480 15968 195.159.176.226 (10 Sep 2017 01:21:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 10 Sep 2017 01:21:20 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (windows-nt) Cc: Tak Kunihiro , Emacs-Devel devel To: Alan Third Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 10 03:21:12 2017 Return-path: Envelope-to: ged-emacs-devel@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 1dqqvs-0003fD-Kb for ged-emacs-devel@m.gmane.org; Sun, 10 Sep 2017 03:21:08 +0200 Original-Received: from localhost ([::1]:51364 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dqqvz-0001x0-OU for ged-emacs-devel@m.gmane.org; Sat, 09 Sep 2017 21:21:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59551) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dqqvt-0001wo-LT for emacs-devel@gnu.org; Sat, 09 Sep 2017 21:21:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dqqvo-0004Kb-Ni for emacs-devel@gnu.org; Sat, 09 Sep 2017 21:21:09 -0400 Original-Received: from mail-pg0-x232.google.com ([2607:f8b0:400e:c05::232]:33974) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dqqvo-0004Jy-HI for emacs-devel@gnu.org; Sat, 09 Sep 2017 21:21:04 -0400 Original-Received: by mail-pg0-x232.google.com with SMTP id q68so10078722pgq.1 for ; Sat, 09 Sep 2017 18:21:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=/IdQmugkgcXNwQUWF/hkn0hwOOtBLd25qv4AtT0xTOg=; b=C/VDCe44nufcdxKIKlZFDujZ4XCAHD+weo15HT8pznqb5SmJaYtbUibT2i8zfki3Fi SfKBRDqMFf3BNKGM1i4363t60h8DaWh4WwQVmfxmTR/vvCyBnnEAuApLDk2JePI0wT9p rIxCQzeFXheKEVBKuaeCr5aNhbzGkptv8dSFgSnFq1lWYUkWeOdFvj4NUnXjO35zXxYi px0O2IxcdQ+v0KaMNYM/mdCXYxghIMHzC0Fu/mtqtoPIHfAB0vpS+jH3KN8JPA1NceMF tmcnC3BUisQNDxJNc9VJhxuF9+ByDPhSi8VuCt90D7UbXHzeDiuuV8ViOxa5/t8LWboO 6JXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=/IdQmugkgcXNwQUWF/hkn0hwOOtBLd25qv4AtT0xTOg=; b=VhqxH64PGgBg4NJjYRStpM2u9NM9K1yZSPqRAqbjvgVUqYY2WGbG4KmxCKbZ19cCGw wMDlKZ6WGexKpipnNMO70vVP1buIWngrgdxf4kSLlHDBkyMmyyGGnr/lWQ3QydJwP6Wz 9KvjJI0dglP9ymMlXB07h4s+QpufzFzRrn1ojF25Ip+M+o1+avwKRx0V/W9d+5zKN4Gq eTgb6xUHfWPfh7h9nGqJV7WUi+OKtPqmQutCzlYcwWVFQ0qpxvPhxQond2fcoKM8YIec TTrrUl3oAJDUHNgDplEj8GHZ9nI0b6neWUAccuaoOdPQt26ZWNAPaO/h6u2a4iF4sIWl PKiw== X-Gm-Message-State: AHPjjUgyh6+AHUYSmTmIg3JMfzay1aEZAUdq1gI6f6nL+T03hBub3UWD dq4tf2uxX81eChmY X-Google-Smtp-Source: ADKCNb617rBPK1MTw/wIW2CaU5uI7aKciMszqsW3gjURNt61ApnUU4v0JNfYcU8lU1bOmNCwAgIYZA== X-Received: by 10.84.238.132 with SMTP id v4mr8698295plk.176.1505006462043; Sat, 09 Sep 2017 18:21:02 -0700 (PDT) Original-Received: from thankless (p219225-ipngn200207tottori.tottori.ocn.ne.jp. [153.182.218.225]) by smtp.gmail.com with ESMTPSA id o11sm7757418pgp.88.2017.09.09.18.21.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 09 Sep 2017 18:21:01 -0700 (PDT) X-Google-Original-From: Tak Kunihiro In-Reply-To: <20170909081805.GA20275@breton.holly.idiocy.org> (Alan Third's message of "Sat, 9 Sep 2017 09:18:05 +0100") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::232 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:218084 Archived-At: >> > + int lineHeight =3D default_line_pixel_height(XWINDOW (FRAME= _SELECTED_WINDOW (emacsframe))); >>=20 >> A buffer with images has lines with different height. >> I think lineHeight should be >> - height of 1 line (or sum of 5 lines) at the top on a screen >> when scrolling up >> - height of unseen 1 line (or sum of unseen 5 lines) above the >> top out of screen when scrolling down. > > I also don=E2=80=99t think it=E2=80=99s too important as we=E2=80=99re no= t doing real > pixelwise scrolling. I considered just using a constant value, like > 10, as I think that would still provide a better experience than we > have currently. Once customization is allowed, touchpad can scroll slow with following setup. (require 'pixel-scroll) (pixel-scroll-mode 1) (setq pixel-resolution-fine-flag t) Although this should not be advertised because C-n and C-p after scrolling redo the scroll less than a line (in other word, implementation is incomplete), this works as pixelwise scrolling. Thus please have an option to let touchpad send each event by each pixel.