Fix erroneous cursor control with keys when grid size is less than one pixel with certain zoom levels.
This commit is contained in:
parent
232d7462b6
commit
27eafcb5c1
|
@ -503,6 +503,8 @@ int PCBNEW_CONTROL::CursorControl( const TOOL_EVENT& aEvent )
|
|||
// Handler cursor movement
|
||||
KIGFX::VIEW* view = getView();
|
||||
newCursor = view->ToScreen( newCursor );
|
||||
newCursor.x = round( newCursor.x );
|
||||
newCursor.y = round( newCursor.y );
|
||||
|
||||
// Pan the screen if required
|
||||
const VECTOR2I& screenSize = view->GetGAL()->GetScreenPixelSize();
|
||||
|
|
Loading…
Reference in New Issue