You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can no longer use navigation gestures (back/home app switch) in fullscreen apps with immersion mode through mouse swiping since upgrading to Scrcpy 3.0 (it's still fine in 2.7).
The text was updated successfully, but these errors were encountered:
With this dirty hack (the position mapper is not updated), it "works":
diff --git server/src/main/java/com/genymobile/scrcpy/control/Controller.java server/src/main/java/com/genymobile/scrcpy/control/Controller.java
index f0e4c0374..e0533fff9 100644
--- server/src/main/java/com/genymobile/scrcpy/control/Controller.java+++ server/src/main/java/com/genymobile/scrcpy/control/Controller.java@@ -139,7 +139,7 @@ public class Controller implements AsyncProcessor, VirtualDisplayListener {
@Override
public void onNewVirtualDisplay(int virtualDisplayId, PositionMapper positionMapper) {
- DisplayData data = new DisplayData(virtualDisplayId, positionMapper);+ DisplayData data = new DisplayData(0, positionMapper); // hack
DisplayData old = this.displayData.getAndSet(data);
if (old == null) {
// The very first time the Controller is notified of a new virtual display
But I think the correct way is to send mouse events to the (mirroring) virtual display, not the main display. I have no control over how Android reacts to these events though.
Side-note: you can press BACK using right-click and HOME using middle-click by default.
Environment
Describe the bug
Can no longer use navigation gestures (back/home app switch) in fullscreen apps with immersion mode through mouse swiping since upgrading to Scrcpy 3.0 (it's still fine in 2.7).
The text was updated successfully, but these errors were encountered: