Proper test for hovering mouse over the timeline.

This commit is contained in:
Bartosz Taudul 2020-07-29 19:03:54 +02:00
parent e406ce5aab
commit 7f90a0a84e

View File

@ -2406,7 +2406,7 @@ void View::DrawZones()
const auto winpos = ImGui::GetWindowPos();
const auto winsize = ImGui::GetWindowSize();
const bool drawMouseLine = ImGui::IsMouseHoveringRect( winpos, winpos + winsize, false );
const bool drawMouseLine = ImGui::IsWindowHovered( ImGuiHoveredFlags_ChildWindows | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem ) && ImGui::IsMouseHoveringRect( winpos, winpos + winsize, false );
if( drawMouseLine )
{
HandleRange( m_findZone.range, timespan, ImGui::GetCursorScreenPos(), w );