From 45eb916e749585419bd4a6566e4f7e74f54d22d8 Mon Sep 17 00:00:00 2001 From: Noah Nuebling Date: Sat, 3 Apr 2021 13:37:24 +0200 Subject: [PATCH] Adjsuted threeFingerDrag scaling factors. --- App/SupportFiles/Info.plist | 2 +- Helper/InputTransformation/Drag/ModifiedDrag.m | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/App/SupportFiles/Info.plist b/App/SupportFiles/Info.plist index 0e61718af..2298c888d 100644 --- a/App/SupportFiles/Info.plist +++ b/App/SupportFiles/Info.plist @@ -19,7 +19,7 @@ CFBundleShortVersionString $(MARKETING_VERSION) CFBundleVersion - 5135 + 5145 LSApplicationCategoryType public.app-category.utilities NSHumanReadableCopyright diff --git a/Helper/InputTransformation/Drag/ModifiedDrag.m b/Helper/InputTransformation/Drag/ModifiedDrag.m index fd4299677..41508fca3 100644 --- a/Helper/InputTransformation/Drag/ModifiedDrag.m +++ b/Helper/InputTransformation/Drag/ModifiedDrag.m @@ -225,11 +225,13 @@ void handleMouseInputWhileInUse(int64_t deltaX, int64_t deltaY, CGEventRef event // threeFingerScaleH = threeFingerScaleV = 0.8 / screenHeight; // Method 2 CGFloat screenWidth = NSScreen.mainScreen.frame.size.width; - threeFingerScaleH = threeFingerScaleV = 1.15 / screenWidth; + threeFingerScaleH = threeFingerScaleV = 1.45 / screenWidth; // 1.15 // ^ This makes horizontal dockSwipes (switch between spaces) follow the pointer exactly. We should maybe use screenHeight to scale vertical dockSwipes (Mission Control and App Windows), but on a normal screen, this feels perfectly fine. // This actually doesn't follow the pointer very closely anymore for some reason. It's way slower. Idk what changed. // ^ TODO: Test this on a vertical screen + threeFingerScaleV *= 1.5; // Vertical doesn't follow pointer anyways. This makes it feel a little nicer + twoFingerScale = 1.0; // This makes pointer scrolling follow the mouse pointer exactly } else { threeFingerScaleH = threeFingerScaleV = 5 / 10000.0;