mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 12:23:53 +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 winpos = ImGui::GetWindowPos();
|
||||||
const auto winsize = ImGui::GetWindowSize();
|
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 )
|
if( drawMouseLine )
|
||||||
{
|
{
|
||||||
HandleRange( m_findZone.range, timespan, ImGui::GetCursorScreenPos(), w );
|
HandleRange( m_findZone.range, timespan, ImGui::GetCursorScreenPos(), w );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user