Use SOURCE_MOUSE for scroll events
This has no practical impact (AFAIK), but a scroll events should come from a mouse. Refs #2602 <https://github.com/Genymobile/scrcpy/issues/2602>
This commit is contained in:
parent
3a39bacb76
commit
116acc8d25
1 changed files with 1 additions and 1 deletions
|
@ -241,7 +241,7 @@ public class Controller {
|
||||||
|
|
||||||
MotionEvent event = MotionEvent
|
MotionEvent event = MotionEvent
|
||||||
.obtain(lastTouchDown, now, MotionEvent.ACTION_SCROLL, 1, pointerProperties, pointerCoords, 0, 0, 1f, 1f, DEFAULT_DEVICE_ID, 0,
|
.obtain(lastTouchDown, now, MotionEvent.ACTION_SCROLL, 1, pointerProperties, pointerCoords, 0, 0, 1f, 1f, DEFAULT_DEVICE_ID, 0,
|
||||||
InputDevice.SOURCE_TOUCHSCREEN, 0);
|
InputDevice.SOURCE_MOUSE, 0);
|
||||||
return device.injectEvent(event);
|
return device.injectEvent(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue