From 661445a0531374cf2fa4392826f66bc24793c971 Mon Sep 17 00:00:00 2001 From: eisa01 Date: Fri, 22 Aug 2025 22:37:10 +0200 Subject: [PATCH] [ios] Fix shift+scroll wheel zooming out When you press shift on macOS, the normal scroll wheel action on a mouse is changed to horizontal scroll instead of vertical That meant this check never entered, and since translation.y = 0 you always zoom out Signed-off-by: eisa01 --- iphone/Maps/Classes/MapViewController.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iphone/Maps/Classes/MapViewController.mm b/iphone/Maps/Classes/MapViewController.mm index d840bd0fa..00842cfea 100644 --- a/iphone/Maps/Classes/MapViewController.mm +++ b/iphone/Maps/Classes/MapViewController.mm @@ -938,7 +938,7 @@ NSString *const kAboutSegue = @"Map2About"; case UIGestureRecognizerStateChanged: { CGPoint translation = [recognizer translationInView:self.view]; - if (translation.x == 0 && CGPointEqualToPoint(translation, CGPointZero)) + if (translation.y == 0) return; self.userTouchesAction = UserTouchesActionScale; static const CGFloat kScaleFactor = 0.9;