added support for smooth trackpad scrolling on macos