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

Commit d8fb01fe authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Remove constraint on touch location." into oc-dr1-dev

parents 97d1c4f2 7b5be760
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -94,9 +94,6 @@ int VirtualTouchpadEvdev::Touch(int touchpad_id, float x, float y,
  if (touchpad_id < 0 || touchpad_id >= kTouchpads) {
    return EINVAL;
  }
  if ((x < 0.0f) || (x >= 1.0f) || (y < 0.0f) || (y >= 1.0f)) {
    return EINVAL;
  }
  int32_t device_x = x * kWidth;
  int32_t device_y = y * kHeight;
  Touchpad& touchpad = touchpad_[touchpad_id];