cocoa: fix mouse wheel scrolling

This commit is contained in:
Mad Fish 2013-10-12 15:24:26 +02:00 committed by Stefano Pigozzi
parent 65a3977282
commit 42189ada97
1 changed files with 1 additions and 1 deletions

View File

@ -190,7 +190,7 @@
[self.adapter putAxis:cmd delta:delta];
} else {
const int modifiers = [event modifierFlags];
const int mpkey = delta > 0 ? MP_MOUSE_BTN3 : MP_MOUSE_BTN4;
const int mpkey = [event deltaY] > 0 ? MP_MOUSE_BTN3 : MP_MOUSE_BTN4;
[self.adapter putKey:mpkey withModifiers:modifiers];
}
}