Fixed pointer position detection.