fixed mouse support for Mac