WIP: slightly better mousemoved code