Fixed calculating click coordinates on rotated components.