am 3aa33b3d: Merge "Update button to BUTTON_STYLUS_PRIMARY" into mnc-dev
* commit '3aa33b3da04774d76e1a65b749667450dc81532b': Update button to BUTTON_STYLUS_PRIMARY
This commit is contained in:
@@ -320,8 +320,8 @@ public class ScaleGestureDetector {
|
||||
}
|
||||
|
||||
final int count = event.getPointerCount();
|
||||
final boolean isStylusButtonDown = (event.getToolType(0) == MotionEvent.TOOL_TYPE_STYLUS)
|
||||
&& (event.getButtonState() & MotionEvent.BUTTON_SECONDARY) != 0;
|
||||
final boolean isStylusButtonDown =
|
||||
(event.getButtonState() & MotionEvent.BUTTON_STYLUS_PRIMARY) != 0;
|
||||
|
||||
final boolean anchoredScaleCancelled =
|
||||
mAnchoredScaleMode == ANCHORED_SCALE_MODE_STYLUS && !isStylusButtonDown;
|
||||
|
||||
Reference in New Issue
Block a user