devdraw: Fix mouse wheel scrolling in 1-tick increments on macOS
This commit is contained in:
parent
e2a141ae09
commit
0392f49cfc
1 changed files with 3 additions and 3 deletions
|
|
@ -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];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue