Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simulate touch move for scrolling #5297

Open
1 task done
nothingshiru opened this issue Sep 16, 2024 · 0 comments
Open
1 task done

Simulate touch move for scrolling #5297

nothingshiru opened this issue Sep 16, 2024 · 0 comments

Comments

@nothingshiru
Copy link

nothingshiru commented Sep 16, 2024

Is your feature request related to a problem? Please describe.
In some applications, scrolling with the mouse wheel doesn't scroll the screen as well as scrolling with finger.

Describe the solution you'd like
I've noticed on my phone and tablet that on pages where I can scroll normally with the mouse wheel, one step of scrolling moves 64dp.

It would be nice to be able to simulate a vertical finger movement of 64dp when holding shift and scrolling the mouse wheel in scrcpy.

Describe alternatives you've considered
None

Additional context
I've seen requests to simulate swiping. I don't know if swiping nesscesary means the screen would keep moving for a while after the finger is lifted. If so, the "touch move" I'm requesting is not a swipe.

adb shell input swipe 1400 940 1400 780 50 && adb shell input swipe 1400 940 1400 939 50
This command I got from ChatGPT seems to be able to scroll one step at a time, though it can't scroll multiple steps smoothly. The last swipe is used to stop the screen from moving further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant