Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 29fbca6b authored by Ricardo Cerqueira's avatar Ricardo Cerqueira Committed by Gerrit Code Review
Browse files

Merge "Fixed stylus eraser being rejected by palm rejection" into cm-10.2

parents 94b18342 2e1eb880
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -5717,7 +5717,8 @@ nsecs_t TouchInputMapper::mLastStylusTime = 0;

bool TouchInputMapper::rejectPalm(nsecs_t when) {
  return (when - mLastStylusTime < mConfig.stylusPalmRejectionTime) &&
    mPointerSimple.currentProperties.toolType != AMOTION_EVENT_TOOL_TYPE_STYLUS;
    mPointerSimple.currentProperties.toolType != AMOTION_EVENT_TOOL_TYPE_STYLUS &&
    mPointerSimple.currentProperties.toolType != AMOTION_EVENT_TOOL_TYPE_ERASER;
}

bool TouchInputMapper::isPointInsideSurface(int32_t x, int32_t y) {