mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Proper test for hovering mouse over the timeline.
This commit is contained in:
parent
e406ce5aab
commit
7f90a0a84e
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user