Fixed bug where mouse click events were in the wrong coordinate system when screen resized