Browse Source

Fix cursor lag in canvases on Windows.

Fixes: lp:1831541
* https://bugs.launchpad.net/kicad/+bug/1831541
pull/15/head
Thomas Figueroa 6 years ago
committed by Jeff Young
parent
commit
ea0edaba21
  1. 2
      common/tool/tool_manager.cpp
  2. 5
      include/tool/tool_event.h

2
common/tool/tool_manager.cpp

@ -966,7 +966,7 @@ void TOOL_MANAGER::UpdateUI( const TOOL_EVENT& aEvent )
{
frame->UpdateStatusBar();
if( !aEvent.IsMotion() )
if( !aEvent.IsMouseAction() )
frame->SyncToolbars();
}
}

5
include/tool/tool_event.h

@ -298,6 +298,11 @@ public:
return m_actions == TA_MOUSE_MOTION;
}
bool IsMouseAction() const
{
return m_actions && TA_MOUSE;
}
bool IsCancel() const
{
return m_actions == TA_CANCEL_TOOL;

Loading…
Cancel
Save