Cache mousePosition