Fix horizontal scrolling constant

Use AXIS_HSCROLL (available since API 12) instead of AXIS_SCROLL (since
API 26).
hidpi
Romain Vimont 6 years ago
parent c6d01331ed
commit 285fc97d02

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

Loading…
Cancel
Save