Improve scrolling event for magic mouse, and apple trackpad