devdraw: Fix mouse wheel scrolling in 1-tick increments on macOS

This commit is contained in:
zakkor 2022-12-29 01:31:55 +02:00 committed by Dan Cross
parent e2a141ae09
commit 0392f49cfc

View file

@ -601,12 +601,12 @@ rpc_resizewindow(Client *c, Rectangle r)
- (void)scrollWheel:(NSEvent*)e - (void)scrollWheel:(NSEvent*)e
{ {
NSInteger s; CGFloat s;
s = [e scrollingDeltaY]; s = [e scrollingDeltaY];
if(s > 0) if(s > 0.0f)
[self sendmouse:8]; [self sendmouse:8];
else if (s < 0) else if (s < 0.0f)
[self sendmouse:16]; [self sendmouse:16];
} }