From 829733272b2a2fe6108c9834215bd07520b69033 Mon Sep 17 00:00:00 2001

From: =?UTF-8?q?Jaakko=20Kera=CC=88nen?= jaakko.keranen@iki.fi

Date: Fri, 4 Feb 2022 18:06:51 +0200

Subject: [PATCH 1/1] macOS: Let other windows handle scroll events

For example, trying to scroll the Sparkle release notes was not possible because the main window would scroll instead.


src/macos.m | 5 ++++-

1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/macos.m b/src/macos.m

index ad236784..191842f6 100644

--- a/src/macos.m

+++ b/src/macos.m

@@ -436,6 +436,10 @@ static iBool processScrollWheelEvent_(NSEvent *event) {

 const iBool isInertia  = (event.momentumPhase & (NSEventPhaseBegan | NSEventPhaseChanged)) != 0;

 const iBool isEnded    = event.scrollingDeltaX == 0.0f && event.scrollingDeltaY == 0.0f && !isInertia;

 const iWindow *win     = &get_MainWindow()->base;

 if (isPerPixel) {

     /* On macOS 12.1, stopping ongoing inertia scroll with a tap seems to sometimes produce

        spurious large scroll events. */

@@ -525,7 +529,6 @@ static iBool processScrollWheelEvent_(NSEvent *event) {

         ev.wheel.y = iSign(ev.wheel.y);

     }

#endif

 return iTrue;        

}

--

2.25.1

Proxy Information
Original URL
gemini://git.skyjake.fi/lagrange/work%2Fv1.9/patch/829733272b2a2fe6108c9834215bd07520b69033.patch
Status Code
Success (20)
Meta
text/plain
Capsule Response Time
193.140641 milliseconds
Gemini-to-HTML Time
0.599206 milliseconds

This content has been proxied by September (ba2dc).