From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Third Newsgroups: gmane.emacs.devel Subject: Re: Smoother macOS touchpad scrolling Date: Sun, 10 Sep 2017 09:37:58 +0100 Message-ID: <20170910083758.GA30315@breton.holly.idiocy.org> References: <20170908184634.GA20058@breton.holly.idiocy.org> <86y3pox258.fsf@misasa.okayama-u.ac.jp> <20170909081805.GA20275@breton.holly.idiocy.org> <86ingrl56v.fsf@misasa.okayama-u.ac.jp> 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 1505032731 9045 195.159.176.226 (10 Sep 2017 08:38:51 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 10 Sep 2017 08:38:51 +0000 (UTC) User-Agent: Mutt/1.7.2 (2016-11-26) Cc: Emacs-Devel devel To: Tak Kunihiro Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 10 10:38:46 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 1dqxlF-0001kA-Qa for ged-emacs-devel@m.gmane.org; Sun, 10 Sep 2017 10:38:37 +0200 Original-Received: from localhost ([::1]:52123 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dqxlM-0007LC-Rj for ged-emacs-devel@m.gmane.org; Sun, 10 Sep 2017 04:38:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39411) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dqxki-0007L1-07 for emacs-devel@gnu.org; Sun, 10 Sep 2017 04:38:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dqxkh-0005Zg-7I for emacs-devel@gnu.org; Sun, 10 Sep 2017 04:38:04 -0400 Original-Received: from mail-wm0-x233.google.com ([2a00:1450:400c:c09::233]:46181) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dqxkg-0005ZK-Vp for emacs-devel@gnu.org; Sun, 10 Sep 2017 04:38:03 -0400 Original-Received: by mail-wm0-x233.google.com with SMTP id i189so22588165wmf.1 for ; Sun, 10 Sep 2017 01:38:01 -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=Iu6BZ990kA16B70+ykiV7mq3eeFl1lfbCctVv+HOlHQ=; b=je7tdDGIdFnraF10H5THj8dcpIN3EzcvXGCpi5dkyq80HTua6OgrnKXJPXMzTCsjEq nxoVleA1fn7nXZPwYo6eqqvJytWPhKNjqzPt77JdcA5Lf+hgDcJ7ZRaZW17ez6gM+c6a rytVh7j8OfYn2V0JVj3b/octnV+YgU2Vzvhz2kitMHDf0bfgorAvG1NLUX75YQ1HEf1K LJkpgEa4mj2XIt2ohsBwYnb2GbrplQrmVvyz4l+6fwdVw35VBA6QDy9G2X67pSDdS32+ yUmXcFFFOgL3zwvGzb6KDYuC/sGPEy4/v4ruS3zLxtlPJDFu/azZbEDoBJLWh+9yNjQ6 /ZkQ== 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=Iu6BZ990kA16B70+ykiV7mq3eeFl1lfbCctVv+HOlHQ=; b=BSsT2uNn4KBy5xWrC9Hm0JrPnawCVVx/Ns1NfGy0OQON/eFaWMK97teoV+Vzmgjzg5 2fYT4bteL533bf/AWRtfUFMRpchofPRQXuL3+w5HIlwXPKPVJbaI6yIBbZgTTMgvAFCO yHUphTWURXkDbAnArUU9cJHWurf5d297nE30tBuwVq7dU0jmdn02KorrUvxNof2bT5PH a/P++G9Mx8EDaQg7Qo2yMD8OulxhUtMVyd5LyFRD0FQkPHIKZlYpgXKwtFzUMcJGb+IR HeIAstomPPyPkDHn4NRejumKSnhN08JoU3vNdatU2YooSZ34AQeylwpq9AVG0ULwys+k jrmQ== X-Gm-Message-State: AHPjjUi+LH1xBz2zH3OwGqJFGjgCSXBjaconeJsaXgwRMqAVwxh2qJYV yCgAOhcyNJGJlQ== X-Google-Smtp-Source: AOwi7QAX3q+RlTqRNrfog6A30xiF6sGdyZYQB0wA7+MNHxOopKBZQ1VIJBMafCNHrAUA7d1cfCBiow== X-Received: by 10.28.9.135 with SMTP id 129mr5621962wmj.93.1505032680424; Sun, 10 Sep 2017 01:38:00 -0700 (PDT) Original-Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-2cce-997a-55b7-29ff.holly.idiocy.org. [2001:8b0:3f8:8129:2cce:997a:55b7:29ff]) by smtp.gmail.com with ESMTPSA id y99sm10841175wmh.1.2017.09.10.01.37.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 Sep 2017 01:37:59 -0700 (PDT) Content-Disposition: inline In-Reply-To: <86ingrl56v.fsf@misasa.okayama-u.ac.jp> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::233 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:218087 Archived-At: On Sun, Sep 10, 2017 at 10:20:56AM +0900, Tak Kunihiro wrote: > > I also don’t think it’s too important as we’re not 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. You mean one event per pixel to be scrolled, or pass the delta in the event? I can certainly do the former, although it will potentially result in a torrent of scroll events. The latter is, I think, banned as it can’t be replicated on a Free system, but is the better solution. How about instead of using the default font height, I provide a variable that the user can use to set a ‘line height’ of their own choosing? i.e. ‘(setq ns-touchpad-scroll-line-height 1)’ for one pixel. If I work out how to use the real line heights, that can be the default, overridden by the variable. -- Alan Third