gujjwal00 / avnc

VNC Client for Android
GNU General Public License v3.0
660 stars 59 forks source link

Middle click + drag ? #171

Closed pierreduf closed 1 year ago

pierreduf commented 1 year ago

Hello and thx for your hard work !

I need to do a middle-click drag but I get the feeling that it's not supported by your app ? Am I wrong ? If not, could it be implemented ?

I've tried a lot of things (eg. mapping middle click to long press) but it only does what it says :) = a "simple" middle click (meaning click down + click up automatically) so drag is not taken into account.

I'd like something like : 1/ I map middle click to long press 2/ I long press then move my finger : it does middle click + drag 3/ If I long pres then immediatly release : it does a full mouse click (click down + click up)

That would be awesome, thank you for your answer !

gujjwal00 commented 1 year ago

You are right, AVNC didn't support middle-click-drag, but it was relatively simple to implement this. Please test this APK: https://github.com/gujjwal00/avnc/suites/13057124574/artifacts/707988111 It has an option to Drag with middle button for both double-tap-swipe & long-press-swipe gestures.

PS: When working on this I noticed a regression that options for Long press and swipe were incorrectly populated. So thank you for opening this issue.

pierreduf commented 1 year ago

Hey ! Thank you for your prompt answer and action.

I've tested the artifact and it seems to work perfectly ! I'll keep you posted if I see anything strange but I guess we can close that issue.