Fix horizontal scrolling constant

Use AXIS_HSCROLL (available since API 12) instead of AXIS_SCROLL (since
API 26).
This commit is contained in:
Romain Vimont 2018-02-07 20:50:20 +01:00
parent c6d01331ed
commit 285fc97d02

View file

@ -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);
}