Commit 879fceca authored by CHARRAS's avatar CHARRAS

small mouse moves filtering before starting a block command

parent 93bcede5
......@@ -5,14 +5,11 @@ Please add newer entries at the top, list the date and your name with
email address.
time travelling?
|
V
2007-Dec-18 UPDATE Jean-Pierre Charras <jean-pierre.charras@inpg.fr>
2008-Jan-18 UPDATE Jean-Pierre Charras <jean-pierre.charras@inpg.fr>
================================================================================
+all:
filtering small mouse moves ( < 5 pixels) when clicking.
Starting a wire or a track is now more easily because now these small moves do not start a block commnad.
Starting a wire or a track is now more easily because these small moves do not start a block commnad.
+pcbnew:
rework of drill filles creation (excellon and reports)
......
......@@ -797,9 +797,6 @@ void WinEDA_DrawPanel::OnMouseEvent( wxMouseEvent& event )
#define MIN_DRAG_COUNT_FOR_START_BLOCK_COMMAND 5 /* Adjust value to filter mouse deplacement before
* consider the drag mouse is really a drag command, not just a movement while click
* static int MinDragEventCount; /* in order to avoid unwanted start block command
* this variable counts drag events and a block command will be started
* if MinDragEventCount > MIN_DRAG_COUNT_FOR_START_BLOCK_COMMAND
*/
static int MinDragEventCount; /* counts the drag events.
* used to filter mouse moves before starting a block command
......@@ -951,7 +948,7 @@ void WinEDA_DrawPanel::OnMouseEvent( wxMouseEvent& event )
MinDragEventCount = 0;
m_CanStartBlock = 0;
/* rembember the last cursor position when a drag mouse starts
/* remember the last cursor position when a drag mouse starts
* this is the last postion ** before ** clicking a button
* this is usefull to start a block command from the point where the mouse was clicked first
* (a filter creates a delay for the real block command start, and we must remember this point)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment