forked from bartvdbraak/blender
Bugfix #28109
Old issue with OSX Cocoa code: shift+scrollwheel should send a 'horizontal wheel' event to Blender. Blender only recognizes scroll events in general though. The old code then just didn't send an event at all, not passing on shift+scrolls. Now the scroll event is sent anyway, relying on Blender's keymapping to define what to do with shift+scroll. This fixes things like shift+scroll to scale ListBox widgets.
This commit is contained in:
parent
f66ec41b6a
commit
681b26a48e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user