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)); 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.NavWindowingTarget->PosFloat += move_delta * move_speed;
g.NavDisableMouseHover = true;
MarkSettingsDirty(g.NavWindowingTarget); MarkSettingsDirty(g.NavWindowingTarget);
} }
} }