-
Bug
-
Resolution: Fixed
-
P4
-
8u20
Sometimes FuzzyTapTest fails because TouchLookahead is too aggressive in merging touch events.
In a sequence of touch states in which each state has the same touch point characteristics except for coordinates, we are only sending the last state. This is incorrect in the case that the previous state before the sequence was different from the current sequence.
For example we are merging the following sequence
TouchState[1, Point[id=0,x=100,y=100]]
TouchState[1, Point[id=0,x=200,y=200]]
TouchState[1, Point[id=0,x=300,y=300]]
TouchState[1, Point[id=0,x=500,y=400]]
TouchState[1, Point[id=0,x=500,y=500]]
into:
TouchState[1, Point[id=0,x=500,y=500]]
This is not always correct. We need to consider the previous state. If the previous state was different, for example
TouchState[0]
then the result of the above sequence should be:
TouchState[1, Point[id=0,x=100,y=100]]
TouchState[1, Point[id=0,x=500,y=500]]
In a sequence of touch states in which each state has the same touch point characteristics except for coordinates, we are only sending the last state. This is incorrect in the case that the previous state before the sequence was different from the current sequence.
For example we are merging the following sequence
TouchState[1, Point[id=0,x=100,y=100]]
TouchState[1, Point[id=0,x=200,y=200]]
TouchState[1, Point[id=0,x=300,y=300]]
TouchState[1, Point[id=0,x=500,y=400]]
TouchState[1, Point[id=0,x=500,y=500]]
into:
TouchState[1, Point[id=0,x=500,y=500]]
This is not always correct. We need to consider the previous state. If the previous state was different, for example
TouchState[0]
then the result of the above sequence should be:
TouchState[1, Point[id=0,x=100,y=100]]
TouchState[1, Point[id=0,x=500,y=500]]