How to reproduce:
1. Open the “OnScreenStickBugRepro“ project
2. Open the “SampleScene“
3. Enter the Play Mode
4. Click on the white rectangle
5. Click anywhere on the Game view/Simulator view screen
6. Observe the Console window
Expected result: No errors
Actual result: Errors “MissingReferenceException: The object of type 'UnityEngine.InputSystem.OnScreen.OnScreenStick' has been destroyed but you are still trying to access it.“ and “MissingReferenceException while executing 'canceled' callbacks of 'Pointer Down[/Mouse/leftButton,/Pen/tip,/Device Simulator“ shown
Reproducible with: 1.7.0, 1.8.1, 1.8.2, 1.9.0, 1.10.0 (2021.3.43f1, 2022.3.44f1, 6000.0.17f1)
Reproducible on: macOS 14.5 (Intel), windows 11 (23H2)
Not reproducible on: No other environments tested
Notes:
- Not reproducible with on-screen buttons
- Reproducible in the Player