Broken Stylus input on mobile platform

It was found out that input system (the legacy one) is not handling touches performed with stylus correctly.
In Unity 2018.3 Input.GetTouch(index) the result was the same for fingers and stylus.
In Unity 2018.4 some gestures such as swipes or tap&hold cannot be detected because touch ends immediately.

The problem can be repoduced on Android devices (Galaxy Note 7, 9)

Are there any settings or workarounds to fix the problem?

5137307–508394–InputTouchTest.zip (512 KB)

Could you try using this class?

I afraid to use it because it is from the new input system and the project is based on the legacy one plus InControl plugin.
It would be to risky to update the whole project.