Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
5.15.0
Description
Hardware: Promethean ActivPanel AP7-B86
Runtime Enviroment: ChromeBook Or ChromeBox
Act the touch and pen at the same time , a lot of touch event will filter out. At that time , getAction will always return 2.
static private int getAction(int index, MotionEvent event) { int action = event.getActionMasked(); if (action == MotionEvent.ACTION_MOVE) { int hsz = event.getHistorySize(); if (hsz > 0) { float x = event.getX(index); float y = event.getY(index); for (int h = 0; h < hsz; ++h) { if ( event.getHistoricalX(index, h) != x || event.getHistoricalY(index, h) != y ) return 1; } return 2; } return 1; } if (action == MotionEvent.ACTION_DOWN || action == MotionEvent.ACTION_POINTER_DOWN && index == event.getActionIndex()) { return 0; } else if (action == MotionEvent.ACTION_UP || action == MotionEvent.ACTION_POINTER_UP && index == event.getActionIndex()) { return 3; } return 2; }
Attachments
Issue Links
- relates to
-
QTBUG-86297 Qt does not handle the ACTION_POINTER_UP event on android
- Closed