Add ugly mouse movement handling