Bugfix #28109
[blender.git] / intern / ghost / intern / GHOST_SystemCocoa.mm
index bb3d6e3aee331257e563f01162a1c68b43348faf..5c88523d4063220eb15501c4392024fa589272c7 100644 (file)
@@ -1560,6 +1560,8 @@ GHOST_TSuccess GHOST_SystemCocoa::handleMouseEvent(void *eventPtr)
                                        GHOST_TInt32 delta;
                                        
                                        double deltaF = [event deltaY];
+
+                                       if (deltaF == 0.0) deltaF = [event deltaX]; // make blender decide if it's horizontal scroll
                                        if (deltaF == 0.0) break; //discard trackpad delta=0 events
                                        
                                        delta = deltaF > 0.0 ? 1 : -1;