Trace mouse movement