optimize scan mousemove