This problem happens on Windows due to some interaction between the Windows Ink system and an application that uses the pen.
It manifests during the start of a stroke where as you begin the stroke nothing will happen at first - you pen tip will move but the stroke does not. And then suddenly the stroke will move to where the pen is. This will produce a small straight line.
It will also manifest as a small delay when first moving a slider. As you move the pointer with the pen, the slider will not move for several millimeters and then suddenly snap to the location of the pen.