From 285fc97d02024b3f8df4e8818d54426d5a356996 Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Wed, 7 Feb 2018 20:50:20 +0100 Subject: [PATCH] Fix horizontal scrolling constant Use AXIS_HSCROLL (available since API 12) instead of AXIS_SCROLL (since API 26). --- server/src/main/java/com/genymobile/scrcpy/EventController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }