mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-19 04:49:26 -07:00
Fix trace value not appearing after touch input (#1120)
This commit is contained in:
parent
25399c75d9
commit
ded99f87b4
2 changed files with 1 additions and 7 deletions
|
@ -616,7 +616,6 @@ namespace GraphControl
|
||||||
if (m_renderMain)
|
if (m_renderMain)
|
||||||
{
|
{
|
||||||
OnPointerMoved(e);
|
OnPointerMoved(e);
|
||||||
m_renderMain->DrawNearestPoint = true;
|
|
||||||
|
|
||||||
e->Handled = true;
|
e->Handled = true;
|
||||||
}
|
}
|
||||||
|
@ -639,6 +638,7 @@ namespace GraphControl
|
||||||
{
|
{
|
||||||
if (m_renderMain)
|
if (m_renderMain)
|
||||||
{
|
{
|
||||||
|
m_renderMain->DrawNearestPoint = true;
|
||||||
Point currPosition = e->GetCurrentPoint(/* relativeTo */ this)->Position;
|
Point currPosition = e->GetCurrentPoint(/* relativeTo */ this)->Position;
|
||||||
|
|
||||||
if (m_renderMain->ActiveTracing)
|
if (m_renderMain->ActiveTracing)
|
||||||
|
|
|
@ -86,12 +86,6 @@ namespace GraphControl::DX
|
||||||
{
|
{
|
||||||
m_Tracing = false;
|
m_Tracing = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wasPointRendered = m_Tracing;
|
|
||||||
if (CanRenderPoint() || wasPointRendered)
|
|
||||||
{
|
|
||||||
RunRenderPassAsync();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue