Issue #11432: stroke continuity for tool events when using a tablet
Hi,
This MR fixes the issue of tool events causing glitches in the display and application of brushes. For unknown reasons, the GimpCoords were being set to default values for some event types. Instead, this MR sets the GimpCoords to the last known values. This preserves stroke continuity.
Also, a certain kind of event, a tablet button release, whilst painting would occasionally cause an infinite result. Perhaps the conditional test for the event having an axis gets confused sometimes. There is now a test for an infinite pressure result, if it happens it is replaced with the last known pressure.
This makes painting in GIMP, using low spacing, pressure enabled brushes, a better experience. The hovering brush does not glitch when pressing tablet buttons, and the stroke does not splodge.