Fixed bug with mouseMoved event