1
0
mirror of https://github.com/ocornut/imgui.git synced 2024-11-12 02:00:58 +01:00

Nav: Moving window with nav stick disables mouse hover (#323)

This commit is contained in:
ocornut 2016-08-03 21:02:27 +02:00
parent 4e91b521ee
commit c0dcef4e16

View File

@ -2493,6 +2493,7 @@ static void NavUpdate()
{
const float move_speed = ImFloor(600 * g.IO.DeltaTime * ImMin(g.IO.DisplayFramebufferScale.x, g.IO.DisplayFramebufferScale.y));
g.NavWindowingTarget->PosFloat += move_delta * move_speed;
g.NavDisableMouseHover = true;
MarkSettingsDirty(g.NavWindowingTarget);
}
}