Fix horizontal scrolling constant
Use AXIS_HSCROLL (available since API 12) instead of AXIS_SCROLL (since API 26).
This commit is contained in:
parent
c6d01331ed
commit
285fc97d02
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue