diff --git a/video/out/cocoa/events_view.m b/video/out/cocoa/events_view.m
index 3162e5e9c9..a9dec1d1d0 100644
--- a/video/out/cocoa/events_view.m
+++ b/video/out/cocoa/events_view.m
@@ -15,8 +15,6 @@
* License along with mpv. If not, see .
*/
-#include
-
#include "input/input.h"
#include "input/keycodes.h"
@@ -246,7 +244,7 @@
CGFloat delta;
int cmd;
- if (FFABS([event deltaY]) >= FFABS([event deltaX])) {
+ if (fabs([event deltaY]) >= fabs([event deltaX])) {
delta = [event deltaY] * 0.1;
cmd = delta > 0 ? MP_AXIS_UP : MP_AXIS_DOWN;
} else {
@@ -254,7 +252,7 @@
cmd = delta > 0 ? MP_AXIS_RIGHT : MP_AXIS_LEFT;
}
- [self.adapter putAxis:cmd delta:FFABS(delta)];
+ [self.adapter putAxis:cmd delta:fabs(delta)];
}
- (void)scrollWheel:(NSEvent *)event