Forward mouse move without button pressed to device (original) (raw)
- I have checked that a similar feature request does not already exist.
Recently I'm implementing --forward-all-clicks option for my client, and I tried to use ACTION_HOVER_MOVE action for mouse movement events without button pressed. I was surprised that many Apps will react to it
Related code: https://github.com/yume-chan/ya-webadb/blob/36d44243cc1b40dcaa83c77b0b423add5202c8f7/apps/demo/pages/scrcpy.tsx#L676-L681
handlePointerMove = (e: React.PointerEvent) => { this.injectTouch( e.buttons === 0 ? AndroidMotionEventAction.HoverMove : AndroidMotionEventAction.Move, e ); };

(Twitter, notice second bottom bar button)
It's not very useful, and I'm not actually requesting you to implement it. Just want to let you know it's possible.


