corrected mouse input on mac
merge mac