From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: James Nguyen Newsgroups: gmane.emacs.devel Subject: Re: Smoother macOS touchpad scrolling Date: Mon, 11 Sep 2017 18:54:14 -0700 Message-ID: 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> <20170910083758.GA30315@breton.holly.idiocy.org> <20170911180920.GA92807@breton.holly.idiocy.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1505181283 18803 195.159.176.226 (12 Sep 2017 01:54:43 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 12 Sep 2017 01:54:43 +0000 (UTC) Cc: Tak Kunihiro , Emacs-Devel devel To: Alan Third Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 12 03:54:32 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 1draP9-0003tG-Bk for ged-emacs-devel@m.gmane.org; Tue, 12 Sep 2017 03:54:23 +0200 Original-Received: from localhost ([::1]:33129 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1draPG-0004VW-1A for ged-emacs-devel@m.gmane.org; Mon, 11 Sep 2017 21:54:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52259) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1draP7-0004V8-Ff for emacs-devel@gnu.org; Mon, 11 Sep 2017 21:54:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1draP4-0004KL-Eh for emacs-devel@gnu.org; Mon, 11 Sep 2017 21:54:21 -0400 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:39539) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1draP4-0004JC-8v for emacs-devel@gnu.org; Mon, 11 Sep 2017 21:54:18 -0400 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id A175C20D17; Mon, 11 Sep 2017 21:54:16 -0400 (EDT) Original-Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Mon, 11 Sep 2017 21:54:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=PaBWfwPrlBZXVCtGvM G4QnVgBMJUE3eWzSk8OBgJ6rg=; b=a8hzpnc+zodLHXf7jSCvZhCzAjStEbeo9F YnK5sOVyH5DYWfQXR/WZYmRP09E4JRlCBQkEMEwkilIX7aKKww+/zPNuiE3Av1Wm vCJ8eP6ZEfeBSa3FnHiKZeNGoH9c/f/UMds8r1UO61MCl0nbxTwQU0Jibgdsi91T f1qlNJsrewi1Ss5P+ilpglESGYwO00L/zlYPvGmpT1MpGQ6mSRQ0P8m/nTDLXwh9 snp7SFHG3Sr0QTiht8qxaWChVJkJOC6fJKG2giVx2hgv+pTsXcJ5hMv120baWlDB EAg1gZ3Tk+6VPMBo9yAWdacVMyfXG+NgUw5dwiw85f6OOLmLRiJw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= fm1; bh=PaBWfwPrlBZXVCtGvMG4QnVgBMJUE3eWzSk8OBgJ6rg=; b=SFng5bBU LBRxJnqLGc2keEXPaGGtw1QbMPn9j35xo7qmF8SdwpRn5v+mSULIx5FEmwhnNvJE y6jrzVEdOsoblyX3+sOw78VvjvSGZz3tBNIbKyBfCARayM61J/pMBWsEDiT8UUHc FYKD7g6Kano9HJIGVW1HwFwJfApddJdvqqHdryex1NoFANuZq/X0Z3Xf8LsWSqge iRWtHiaV5nEJkijbhGFF5QZDFr1JVCXshAkGQtAT6OrHda0QHiKofpodFlqdSQil 0kOfh/VP0vgUN/InpZhcnky3DGJyRYgkHlqfkze5oAJ2Z9T+Nu85fX8eIEgT8Tiy B+3z45+QbMZwKw== X-ME-Sender: X-Sasl-enc: bSrdNDaAFxuJyuvX1i8tWdr17s0lNl+LYi7Zb7d3e6NV 1505181256 Original-Received: from [10.0.1.47] (c-73-231-191-86.hsd1.ca.comcast.net [73.231.191.86]) by mail.messagingengine.com (Postfix) with ESMTPA id 13E2C24323; Mon, 11 Sep 2017 21:54:15 -0400 (EDT) In-Reply-To: <20170911180920.GA92807@breton.holly.idiocy.org> X-Mailer: Apple Mail (2.3273) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 66.111.4.25 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:218104 Archived-At: It seemed to be laggier than when swiping up or down fast with the = touchpad. These settings work for me (before the patch) more smoothly than the = patch (without applying the settings). (setq scroll-margin 5 scroll-step 1 scroll-conservatively 10000 scroll-preserve-screen-position 1) ;; = https://superuser.com/questions/1133436/way-too-fast-scrolling-in-emacs-on= -osx (setq mouse-wheel-scroll-amount (list (if (+desktop-p) 5 1))) (setq mouse-wheel-progressive-speed nil) (setq mouse-wheel-follow-mouse =E2=80=99t) +1 on pixel wise events. It=E2=80=99d be nice to scroll the window by = pixel without display lag. > On Sep 11, 2017, at 11:09 AM, Alan Third wrote: >=20 > On Sun, Sep 10, 2017 at 09:37:58AM +0100, Alan Third wrote: >> How about instead of using the default font height, I provide a >> variable that the user can use to set a =E2=80=98line height=E2=80=99 = of their own >> choosing? i.e. =E2=80=98(setq ns-touchpad-scroll-line-height 1)=E2=80=99= for one >> pixel. >=20 > Updated patch attached. >=20 > I=E2=80=99ve modified mousewheel scrolling so it also makes use of = macOS=E2=80=99s > built=E2=80=90in mousewheel acceleration. My thinking was that if we = turn off > Emacs progressive scrolling for touchpad, then mousewheels can feel > awfully slow. ns-use-system-mwheel-acceleration allows you to turn it > off if you don=E2=80=99t like the new behaviour, but it has no effect = on > touchpad scrolling. >=20 > If anyone gives the patch a try, please let me know what you think. > --=20 > Alan Third > <0001-Provide-smoother-touchpad-scrolling-on-macOS.patch>