Button release event is not fired when using a touchscreen

I am running Ubuntu Mate 16.04.2 on a Raspi 3. Attached to it is a iiyama ProLite T2452MTS touch screen.

While running this setup as an internet kiosk I have noticed strange behaviour with touch inputs. Every few clicks the release event is not registered correctly which causes the mouse to remain in a pressed state.

I have checked the input via xlist test and verified that the release event is not received correctly. The example output below shows three touches to the screen which were registered as motion since release was missing.

button press   1 a[0]=14705 a[1]=8523 a[2]=157 a[3]=85 a[4]=0 
motion a[0]=14689 a[1]=8521 
motion a[0]=14689 a[1]=8521 a[2]=156 
motion a[0]=14689 a[1]=8521 
button release 1 a[0]=14689 a[1]=8521 
# Below are three "clicks", registered as one
button press   1 a[0]=14624 a[1]=5336 a[2]=155 a[3]=85 a[4]=0 
motion a[0]=14637 a[1]=5341 
motion a[0]=14637 a[1]=5341 a[2]=158 a[3]=91 
motion a[0]=14593 a[1]=4702 
motion a[0]=14593 a[1]=4702 a[2]=158 a[3]=85 
motion a[0]=14255 a[1]=8307 
motion a[0]=14255 a[1]=8307 a[2]=153 a[3]=92 
motion a[0]=14263 a[1]=8304 
motion a[0]=14263 a[1]=8304 a[2]=151 a[3]=88 
motion a[0]=14903 a[1]=9944 
motion a[0]=14903 a[1]=9944 a[2]=155 
motion a[0]=14277 a[1]=4645 
motion a[0]=14277 a[1]=4645 a[2]=154 a[3]=87 
motion a[0]=14266 a[1]=4648 
motion a[0]=14266 a[1]=4648 a[2]=155 a[3]=90 
motion a[0]=14266 a[1]=4648 
button release 1 a[0]=14266 a[1]=4648 

The touchscreen works correctly on Windows and on elementaryOS (based on Ubuntu 16.04).

Has anybody experienced the same issue? Any idea what I could do to get this working?

Edit: It looks like if I touch it very fast and make sure that I touch the screen as short as possible the release event gets registered. Is there any timeout or similar that might be set too low?