Added if (\!dx && \!dy) reurn; to mousemove event