EEVblog Electronics Community Forum

Electronics => PCB/EDA/CAD => KiCad => Topic started by: DanielSkevington on April 10, 2018, 04:56:04 pm

Title: Eeschema auto pan speed
Post by: DanielSkevington on April 10, 2018, 04:56:04 pm
I have searched but couldn't find anything about this, apologies if I've missed it.

When I am moving a block of objects, or placing a wire or symbol (or anything else for that matter) in eeschema, if my cursor reaches the edge of the window the program automatically pans in that direction, which is nice in theory but in reality the speed of the panning is so fast that it is basically unusable. Is there a way to change this behaviour? A google search and search of this forum didn't get me anywhere. I've looked through all the eeschema options/preferences and couldn't see it but that doesn't necessarily mean it isn't there...
Title: Re: Eeschema auto pan speed
Post by: saike on April 10, 2018, 05:31:34 pm
I resorted to modifying & recompiling the source code to get round this problem. A fairly easy task on Linux, possibly not so easy on a windows machine.

If you want to try this I will see if I can remember which file the relevant code is in.
Title: Re: Eeschema auto pan speed
Post by: saike on April 10, 2018, 07:55:27 pm
For the source code downloaded sometime around the end of March 2018

The relevant file is 
Code: [Select]
kicad-source-mirror/common/view/wx_view_controls.cpp
The pan function is called
Code: [Select]
bool WX_VIEW_CONTROLS::handleAutoPanning( const wxMouseEvent& aEvent )

Somewhere around line 563 is where the wx_timer is started that handles the auto pan speed.

What is really needed is for this to be set from an external config file but this lack of configurability is something that seems like it will never be fixed in kicad it has been like this for many years.
Title: Re: Eeschema auto pan speed
Post by: DanielSkevington on April 10, 2018, 08:02:54 pm
Many thanks, I am on Linux as it happens so I will give that a go. Really appreciate the response, cheers!