mac: Fix a history swiper bug with magic mouse.