mirror of
https://github.com/wolfpld/tracy.git
synced 2026-08-23 03:28:23 +00:00
Centering around the mouse pointer.
This commit is contained in:
@@ -327,8 +327,6 @@ void View::DrawTimeline()
|
||||
if( m_yDelta != 0 )
|
||||
{
|
||||
auto& io = ImGui::GetIO();
|
||||
auto y = ImGui::GetScrollY();
|
||||
ImGui::SetScrollY( y - m_yDelta );
|
||||
io.MouseClickedPos[1].y = io.MousePos.y;
|
||||
}
|
||||
|
||||
@@ -380,7 +378,7 @@ void View::DrawTimeline()
|
||||
}
|
||||
}
|
||||
|
||||
m_tc.End( pxns, wpos, hover, yMin, yMax );
|
||||
m_tc.End( pxns, wpos, hover, drawMouseLine && m_viewMode == ViewMode::Paused, yMin, yMax );
|
||||
ImGui::EndChild();
|
||||
|
||||
m_lockHighlight = m_nextLockHighlight;
|
||||
|
||||
Reference in New Issue
Block a user