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: Sat, 09 Sep 2017 07:21:23 +0900 Message-ID: <86y3pox258.fsf@misasa.okayama-u.ac.jp> References: <20170908184634.GA20058@breton.holly.idiocy.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1504909363 18165 195.159.176.226 (8 Sep 2017 22:22:43 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 8 Sep 2017 22:22:43 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (windows-nt) Cc: Emacs-Devel devel To: Alan Third Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 09 00:22:38 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 1dqRfT-0004DM-DL for ged-emacs-devel@m.gmane.org; Sat, 09 Sep 2017 00:22:31 +0200 Original-Received: from localhost ([::1]:47500 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dqRfa-0005N1-K3 for ged-emacs-devel@m.gmane.org; Fri, 08 Sep 2017 18:22:38 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34380) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dqReY-0005KF-TN for emacs-devel@gnu.org; Fri, 08 Sep 2017 18:21:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dqReV-0000x1-PC for emacs-devel@gnu.org; Fri, 08 Sep 2017 18:21:34 -0400 Original-Received: from mail-pg0-x22f.google.com ([2607:f8b0:400e:c05::22f]:32772) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dqReV-0000uS-JH for emacs-devel@gnu.org; Fri, 08 Sep 2017 18:21:31 -0400 Original-Received: by mail-pg0-x22f.google.com with SMTP id t3so6926168pgt.0 for ; Fri, 08 Sep 2017 15:21:30 -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; bh=IsdxMUQl8aTmJz4eTqBbEA07frmC+njUzosbALFt7fc=; b=S28D5Y6Tepv68vyXpoHy2muA+DwD969mQaQtDBs+eo7HlYv4Fwsaya2nnZF6qxfSvn dg1Ewbhf/9ilcPfm7+CC+B7xbeYG+DDbPVA8TveP0AydtNF0vc/+c77yzg1lhT3Ucdfu L2XpKY3ggrW6Pqrb2FGoV17XyVanYjeZNCLAd+3vKk4hDpxZWb+6pJxgw/DmndpP00Bq bI8242G1T/MqmbMwXhTFVv05/mJVoNcHvrtphB/nafx0/Av9TVTOhrPUhlO3rJcdloK5 CsuCddbpaCXVlKFio3wrMcX7B7ERTlb5mqEd9aBWiTmK18ttT5bhYvkXv5MRUF3nnyrW ClGw== 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; bh=IsdxMUQl8aTmJz4eTqBbEA07frmC+njUzosbALFt7fc=; b=lfiwZihfbI1LSEU06J0LtRmtLRGn1ozG8dYR5g88GEQPtRS+98ofwLti3T694Gqqsc 5Hf9LsXP3DuSF7KdF/DZk0OuyFA6BR9ZfBO4Jv1d56K81qlvq1C3Q3gSRB61ljs/oi+Z QgC/+Is5O2e/bYrgZ0gYLP1OabamUrOSfpPqmfSGl7maOTDqT0ef8JpZjXe+T0iqL1+8 QzayQz09NN0WPuZAqbAU57ySkgScYfZtkFfvHDKCKJ45E6qHuHDFHa2he4j6yqnLgElb MmMuF89d9RQDnw6dz7DwRtn9PaetCagjqpuSglyrJf+e85rzM9EZAASitzTa63cnkz7G b+vA== X-Gm-Message-State: AHPjjUgBkOLPss9KfEQtYCjN6FEh9YNEqce3uDKLvD+TrxvqF2FNy5I+ vBbfys+NDfFmO4Ax X-Google-Smtp-Source: ADKCNb5hgbyc6LdnrURdCfLXWpGSnkrY/gCIBT3OjgReQsnkNMBnWBjylStGKGWJmb1TIXjd1IuA0A== X-Received: by 10.99.125.82 with SMTP id m18mr4592981pgn.347.1504909289299; Fri, 08 Sep 2017 15:21:29 -0700 (PDT) Original-Received: from thankless (p219225-ipngn200207tottori.tottori.ocn.ne.jp. [153.182.218.225]) by smtp.gmail.com with ESMTPSA id m190sm5256285pga.2.2017.09.08.15.21.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Sep 2017 15:21:28 -0700 (PDT) X-Google-Original-From: Tak Kunihiro In-Reply-To: <20170908184634.GA20058@breton.holly.idiocy.org> (Alan Third's message of "Fri, 8 Sep 2017 19:46:34 +0100") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::22f 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:218038 Archived-At: > +(setq mouse-wheel-scroll-amount '(1 ((shift) . 5))) > +(setq mouse-wheel-progressive-speed nil) I thought one of good things about your patch is to make scrolling smooth without changing default. No? http://lists.gnu.org/archive/html/emacs-devel/2017-08/msg00624.html > + int lineHeight = default_line_pixel_height(XWINDOW (FRAME_SELECTED_WINDOW (emacsframe))); 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.