You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When scrolling with the mouse, if no element is focused, the main element gets focused, preventing scrolling to the end and coloring the whole UI with focus color. It does work correctly with drag scrolling or arrow, and works correctly if an element is already focused.
The focus behavior is still (or maybe again) present. (Both before and after the recent fractional scroll changes.)
When holding mouse button and dragging, input is "touch", and it behaves correctly.
Using touchpad or mouse scroll wheel, input is "scroll".
Whenever input is "scroll", at first one item is selected, but after a few positions all the items in the current area are selected.
Scrolling with keyboard behaves fine, selecting one item at a time, both upwards and downwards.
Tested on a Mac.
Yes, quite similar. All the items get focused, but additionally the item under the mouse pointer is highlighted.
(Also, one has to click in the scrcpy window once after switching to it from another application. But that's probably a different issue.)
EDIT: Disregard the parenthesis, I see now how it works - with the command key grabbing and releasing the cursor. First time using this mode...
Then the behavior comes from the Android app or system. HID mouse is expected to behave the same way as a real mouse plugged via OTG or bluetooth (you can try a real mouse).
Activity
Send scroll events as a touchscreen
rom1v commentedon May 7, 2020
Thank you for the report! 👍
Fixed by e2d5f0e.
inxomnyaa commentedon May 27, 2020
This was heavily occurring on Reddit, many thanks for the patch!
metayan commentedon Sep 3, 2022
The focus behavior is still (or maybe again) present. (Both before and after the recent fractional scroll changes.)
When holding mouse button and dragging, input is "touch", and it behaves correctly.
Using touchpad or mouse scroll wheel, input is "scroll".
Whenever input is "scroll", at first one item is selected, but after a few positions all the items in the current area are selected.
Scrolling with keyboard behaves fine, selecting one item at a time, both upwards and downwards.
Tested on a Mac.
rom1v commentedon Sep 3, 2022
Is the behavior similar with HID mouse/keyboard (
scrcpy -KM)?metayan commentedon Sep 3, 2022
Yes, quite similar. All the items get focused, but additionally the item under the mouse pointer is highlighted.
(Also, one has to click in the
scrcpywindow once after switching to it from another application. But that's probably a different issue.)EDIT: Disregard the parenthesis, I see now how it works - with the command key grabbing and releasing the cursor. First time using this mode...
rom1v commentedon Sep 3, 2022
Then the behavior comes from the Android app or system. HID mouse is expected to behave the same way as a real mouse plugged via OTG or bluetooth (you can try a real mouse).
metayan commentedon Sep 3, 2022
Ha. Indeed. Same with mouse via OTG.
Thanks for the lesson and patience.