Fix drag and drop may stuck in multi touch
Currently, we only check the motion entry if the point count is 1 during drag and drop, that could lead some unexpected behavior if user already had another pointer touched on screen and it can perform drag. That symptom may happen when user is using split screen or device has the waterfall touch screen. This CL will track the pointer id when starting the drag and drop, so it could prevent the drag surface jumping to another pointer or cause the touch didn't work after drop finish. Bug: 228497357 Test: atest inputflinger_tests CrossAppDragAndDropTests Change-Id: I8d152d95d1d9ccd65bf953052223ac61a1e910df
Loading
Please register or sign in to comment