Fix scroll with Apple Magic Mouse and tackpad
Code style fixed