Search Issue Tracker
By Design
Votes
0
Found in
2017.4.14f1
2019.1.0a8
Issue ID
1099572
Regression
No
[UI Elements] An object has a delay in the tracking when moving cursor quickly
How to reproduce:
1. Open attached "MoveMouse.zip" project
2. Go to Test -> "Mouse move"
3. Move the cursor quickly
Expected result: A point should be directly under the mouse
Actual result: A point has a delay in the tracking
Reproducible: 2019.1.0a13
Notes:
- Didn't test with previous versions, because UI Elements feature was experimental and it takes too long to change the code
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Resolution Note (2019.2.X):
There is no desynchronization happening between the last event and the repaint (that can be verified with Debug.Log of the event position and the element resolved styles top/left inside a generateVisualContent callback). The issue seems to be a deeper level, where the editor has some specific logic to collapse mouse events to avoid invoking UI code at too high frequency. This effectively means that UI is capped at a specific frame rate which is below the speed at which mouse events come in.
One interesting thing to try would be to read the mouse position at the last possible moment before rendering but unfortunately we lack such APIs in the editor. Saving the last seen value from input events will unfortunately not solve this as it will suffer the same delay.