mirror of
https://github.com/FelixKratz/SketchyBar
synced 2024-11-10 05:44:16 +00:00
enable scrolling with touchpad gestures (#505)
This commit is contained in:
parent
d15a802485
commit
e9371f6e70
1 changed files with 3 additions and 1 deletions
|
@ -7,7 +7,8 @@ static const EventTypeSpec mouse_events [] = {
|
|||
{ kEventClassMouse, kEventMouseDragged },
|
||||
{ kEventClassMouse, kEventMouseEntered },
|
||||
{ kEventClassMouse, kEventMouseExited },
|
||||
{ kEventClassMouse, kEventMouseWheelMoved }
|
||||
{ kEventClassMouse, kEventMouseWheelMoved },
|
||||
{ kEventClassMouse, kEventMouseScroll }
|
||||
};
|
||||
|
||||
|
||||
|
@ -45,6 +46,7 @@ static pascal OSStatus mouse_handler(EventHandlerCallRef next, EventRef e, void
|
|||
CFRelease(cg_event);
|
||||
break;
|
||||
}
|
||||
case kEventMouseScroll:
|
||||
case kEventMouseWheelMoved: {
|
||||
CGEventRef cg_event = CopyEventCGEvent(e);
|
||||
struct event event = { (void *) cg_event, MOUSE_SCROLLED };
|
||||
|
|
Loading…
Reference in a new issue