Fixed typo and mouseUp() not setting xMousedown to false.