File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -314,7 +314,7 @@ public boolean onTouchEvent(MotionEvent event) {
314314 }
315315 }
316316
317- final boolean configChanged =
317+ final boolean configChanged = action == MotionEvent . ACTION_DOWN ||
318318 action == MotionEvent .ACTION_POINTER_UP ||
319319 action == MotionEvent .ACTION_POINTER_DOWN ;
320320 final boolean pointerUp = action == MotionEvent .ACTION_POINTER_UP ;
@@ -344,7 +344,7 @@ public boolean onTouchEvent(MotionEvent event) {
344344 if (skipIndex == i ) continue ;
345345
346346 // Average touch major and touch minor and convert the resulting diameter into a radius.
347- final float touchSize = getAdjustedTouchHistory (event .getPointerId (i ));
347+ final float touchSize = getAdjustedTouchHistory (event .getPointerId (i )) / 2 ;
348348 devSumX += Math .abs (event .getX (i ) - focusX ) + touchSize ;
349349 devSumY += Math .abs (event .getY (i ) - focusY ) + touchSize ;
350350 }
You can’t perform that action at this time.
0 commit comments