diff --git a/server/src/main/java/com/genymobile/scrcpy/EventController.java b/server/src/main/java/com/genymobile/scrcpy/EventController.java index 5b857dd7..6d2ec3dd 100644 --- a/server/src/main/java/com/genymobile/scrcpy/EventController.java +++ b/server/src/main/java/com/genymobile/scrcpy/EventController.java @@ -55,7 +55,7 @@ public class EventController { private void setScroll(int hScroll, int vScroll) { MotionEvent.PointerCoords coords = pointerCoords[0]; - coords.setAxisValue(MotionEvent.AXIS_SCROLL, hScroll); + coords.setAxisValue(MotionEvent.AXIS_HSCROLL, hScroll); coords.setAxisValue(MotionEvent.AXIS_VSCROLL, vScroll); }