Bug 699185 - when moving the pointer fast out of guide scope, do not keep it highlighted.

When a drawing timeout happens too close from the previous drawing, we don't want to cancel
the timeout function (FALSE), but simply retry later (TRUE).

In our case in particular, if you move your pointer very fast over a guide, the highlighting
drawing was happening less than MINIMUM_DRAW_INTERVAL before the un-highlighting drawing,
hence canceling the later, which caused the drawing bug.
This commit is contained in:
Jehan 2013-04-29 07:03:20 +09:00
parent 6008c2019b
commit 3496e178ef
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ gimp_draw_tool_draw_timeout (GimpDrawTool *draw_tool)
/* keep the timeout running if the last drawing just happened */
if ((now - draw_tool->last_draw_time) <= MINIMUM_DRAW_INTERVAL)
return FALSE;
return TRUE;
draw_tool->draw_timeout = 0;