mirror of https://github.com/GNOME/gimp.git
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:
parent
6008c2019b
commit
3496e178ef
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue