decrease mouse handlers count and every-time class checking during mousemove