please add m_mouseState.dx, m_mouseState.dy conditions to the else if block, and add a comment above as to why we're ignoring trivial mouse move events.