Disable hover when panning (fixes #1550)