cleanup jshint errors
prevent useless mousemove calculation