mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 18:23:15 +02:00
Fix cursor lag in canvases on Windows.
Fixes: lp:1831541 * https://bugs.launchpad.net/kicad/+bug/1831541
This commit is contained in:
parent
7ee6afeace
commit
ea0edaba21
@ -966,7 +966,7 @@ void TOOL_MANAGER::UpdateUI( const TOOL_EVENT& aEvent )
|
|||||||
{
|
{
|
||||||
frame->UpdateStatusBar();
|
frame->UpdateStatusBar();
|
||||||
|
|
||||||
if( !aEvent.IsMotion() )
|
if( !aEvent.IsMouseAction() )
|
||||||
frame->SyncToolbars();
|
frame->SyncToolbars();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -298,6 +298,11 @@ public:
|
|||||||
return m_actions == TA_MOUSE_MOTION;
|
return m_actions == TA_MOUSE_MOTION;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool IsMouseAction() const
|
||||||
|
{
|
||||||
|
return m_actions && TA_MOUSE;
|
||||||
|
}
|
||||||
|
|
||||||
bool IsCancel() const
|
bool IsCancel() const
|
||||||
{
|
{
|
||||||
return m_actions == TA_CANCEL_TOOL;
|
return m_actions == TA_CANCEL_TOOL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user