Skip to content

Commit

Permalink
Warn on ignored touch event
Browse files Browse the repository at this point in the history
In theory, this was expected to only happen when a touch event is sent
just before the device is rotated, but some devices do not respect the
encoding size, causing an unexpected mismatch.

Refs #1518 <#1518>
  • Loading branch information
rom1v committed Jul 9, 2020
1 parent deea29f commit a973757
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/main/java/com/genymobile/scrcpy/Controller.java
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ private boolean injectTouch(int action, long pointerId, Position position, float

Point point = device.getPhysicalPoint(position);
if (point == null) {
// ignore event
Ln.w("Ignore touch event, it was generated for a different device size");
return false;
}

Expand Down

0 comments on commit a973757

Please sign in to comment.