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 ...@@ -5,14 +5,11 @@ Please add newer entries at the top, list the date and your name with
email address. email address.
time travelling? 2008-Jan-18 UPDATE Jean-Pierre Charras <jean-pierre.charras@inpg.fr>
|
V
2007-Dec-18 UPDATE Jean-Pierre Charras <jean-pierre.charras@inpg.fr>
================================================================================ ================================================================================
+all: +all:
filtering small mouse moves ( < 5 pixels) when clicking. 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: +pcbnew:
rework of drill filles creation (excellon and reports) rework of drill filles creation (excellon and reports)
......
...@@ -797,9 +797,6 @@ void WinEDA_DrawPanel::OnMouseEvent( wxMouseEvent& event ) ...@@ -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 #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 * 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. static int MinDragEventCount; /* counts the drag events.
* used to filter mouse moves before starting a block command * used to filter mouse moves before starting a block command
...@@ -951,7 +948,7 @@ void WinEDA_DrawPanel::OnMouseEvent( wxMouseEvent& event ) ...@@ -951,7 +948,7 @@ void WinEDA_DrawPanel::OnMouseEvent( wxMouseEvent& event )
MinDragEventCount = 0; MinDragEventCount = 0;
m_CanStartBlock = 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 the last postion ** before ** clicking a button
* this is usefull to start a block command from the point where the mouse was clicked first * 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) * (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