Inputs, Tooltip: Rework stationary timer logic as it broke on high-framerates with lower rate of mouse inputs. (#1485)

This commit is contained in:
ocornut
2023-07-03 12:17:23 +02:00
parent 64172685d6
commit 1029f57b8a
3 changed files with 6 additions and 10 deletions

View File

@ -1978,7 +1978,6 @@ struct ImGuiContext
// Mouse state
ImGuiMouseCursor MouseCursor;
int MouseMovingFrames;
float MouseStationaryTimer; // Time the mouse has been stationary (with some loose heuristic)
ImVec2 MouseLastValidPos;
@ -2182,7 +2181,6 @@ struct ImGuiContext
HoverItemDelayTimer = HoverItemDelayClearTimer = 0.0f;
MouseCursor = ImGuiMouseCursor_Arrow;
MouseMovingFrames = 0;
MouseStationaryTimer = 0.0f;
TempInputId = 0;