Send the correct pointer id when transitioning from dragging to delegating state.
Previously, we used the pointer id ALL_POINTER_ID_BITS which sent the pointers physically present on the screen.
The previous event stream only had one pointer. This confused the input layer and could cause any number of weird issues.
Bug: 300002193
Bug: 316386865
Test: manual. Perform a gesture that switches from dragging to delegating mid-gesture and inspect logs. Observe no InputEventConsistencyVerifier errors.
Change-Id: Ifa5083d452bfe3fe6a303231677e734d546020af
diff --git a/services/accessibility/accessibility.aconfig b/services/accessibility/accessibility.aconfig
index 993b254..44682e2 100644
--- a/services/accessibility/accessibility.aconfig
+++ b/services/accessibility/accessibility.aconfig
@@ -45,6 +45,13 @@
}
flag {
+ name: "fix_drag_pointer_when_ending_drag"
+ namespace: "accessibility"
+ description: "Send the correct pointer id when transitioning from dragging to delegating states."
+ bug: "300002193"
+}
+
+flag {
name: "pinch_zoom_zero_min_span"
namespace: "accessibility"
description: "Whether to set min span of ScaleGestureDetector to zero."