cocoa_common: improved trackpad scrolling