app: don't ignore events anymore.
I can see why this was added when we used to re-process the graph during motion (it was already slow and would have just been so much slower), but if we only process at the end, it is simply counter-productive not to store all motion events. It doesn't actually make the finale processing (on release) slower, at least not obviously, and we get more data for more accurate (hopefully) selection.
This commit is contained in:
parent
f757865e7d
commit
f167385d7c
1 changed files with 0 additions and 8 deletions
|
|
@ -515,16 +515,8 @@ gimp_paint_select_tool_motion (GimpTool *tool,
|
|||
GimpPaintSelectTool *ps_tool = GIMP_PAINT_SELECT_TOOL (tool);
|
||||
GimpDrawTool *draw_tool = GIMP_DRAW_TOOL (tool);
|
||||
|
||||
static guint32 last_time = 0;
|
||||
|
||||
GIMP_TOOL_CLASS (parent_class)->motion (tool, coords, time, state, display);
|
||||
|
||||
/* don't let the events come in too fast, ignore below a delay of 100 ms */
|
||||
if (time - last_time < 100)
|
||||
return;
|
||||
|
||||
last_time = time;
|
||||
|
||||
if (state & GDK_BUTTON1_MASK)
|
||||
{
|
||||
gfloat distance = euclidean_distance (coords->x,
|
||||
|
|
|
|||
Loading…
Reference in a new issue