Touches are being kept around and not being removed

I’m having trouble with touches getting stuck and never going away.

I made a test program and it happens when the touch (in this case the mouse button using TouchPanel.EnableMouseTouchPoint = true) is held down then released when the cursor is out of the window. The touch point will get stuck and continue to exist. Doing this you could build up a large stack of old non-existent touches.

Relevant code:

TouchCollection touches;

then in initialize:

TouchPanel.EnableMouseTouchPoint = true;


touches = TouchPanel.GetState();

then in draw:

for (int i = 0; i < touches.Count; i++)
    spriteBatch.Draw(debugPoint, touches[i].Position);

I’ve tried this with VisualStudio 2015, monogame 3.5 & 3.6.

Is there a fix for this?