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

I can't seem to perform basic mouse actions on the touchscreen outside of moving the cursor and left clicking. #284

Closed
Proaxel opened this issue Sep 8, 2017 · 6 comments

Comments

@Proaxel
Copy link

Proaxel commented Sep 8, 2017

If I do the gesture for right clicking (Hold one finger, tap a second) the cursor on the host jumps to a random place on the screen. If the window in focus has a scrollbar, then it jumps to a random place as well.

I can't get the click and drag to work either... if I do a tap, hold, and drag like the guide says, the cursor just moves as if I wasn't holding the button down at all.

A normal Left Click works fine.

Am I just not doing these simple gestures correctly, or is it something else?

@cgutman
Copy link
Member

cgutman commented Sep 11, 2017

The right click gesture in the current release works best if you tap and release with both fingers. The gesture detection is also very sensitive to accidental movements during the "hold" phase of the drag which will invalidate the drag and turn it into a normal mouse move.

I fixed the right click gesture handling for the case you described in 45dbd46

I also implemented suppression of accidental movements for drag and right click in 7d7500b

@cgutman cgutman closed this as completed Sep 11, 2017
@Proaxel
Copy link
Author

Proaxel commented Sep 12, 2017

Okay, I hope those fixes work!

@cgutman
Copy link
Member

cgutman commented Sep 26, 2017

Fix released in v1.4.0

@Proaxel
Copy link
Author

Proaxel commented Sep 27, 2017

@cgutman The right click works now! That alone makes it much better! However I still can't get the click and drag to work at all. I'm pretty sure I am holding my finger as still as it can get.

When you select text or move the text input cursor in iOS, you do a similar gesture: You tap and hold in one place for a quarter of a second, then drag around. I can select text on my device just fine, yet I can't do a click and drag in Moonlight at all. Perhaps you should modify the gesture to behave more like iOS's?

@cgutman
Copy link
Member

cgutman commented Oct 1, 2017

@Proaxel That's similar to how it works with Moonlight. If you tap and hold within a 20 pixel radius for 650 ms, it activates a drag. We can't be as liberal with activating a drag as a typical text selection gesture because it might erroneously begin dragging when someone is just trying to do some very fine mouse cursor movement.

What device is it that you're using?

@Proaxel
Copy link
Author

Proaxel commented Oct 1, 2017

@cgutman I am using an iPhone 6s Plus. Is Force Touch implementation possible at all? My second thought was perhaps use Force Touch as a second option when activating a click and drag.

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

2 participants