Mouse event coordinates bugfix