more bugfixes on coordinate system and mouse translation