v0.9.0: fixed lingering taps when using gestures on Android 11
This commit is contained in:
@@ -101,4 +101,13 @@ public class PointerEvent {
|
||||
}
|
||||
pointerEvents.clear();
|
||||
}
|
||||
|
||||
public static synchronized void clearPointerEvents(){
|
||||
pointerEvents.clear();
|
||||
for (PointerEvent p : activePointers.values()){
|
||||
p.current = p.start = new PointF(-1, -1);
|
||||
pointerSignal.dispatch(p.up());
|
||||
}
|
||||
activePointers.clear();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user