Giter Club home page Giter Club logo

Comments (7)

gujjwal00 avatar gujjwal00 commented on September 28, 2024 1

I think AVNC's drag detection logic might be at fault here. It starts drag gesture immediately on the first ACTION_MOVE event after long press. It probably should use a 'touch slope', similar to Android's GestureDetector, which allows finger to wander around up to a certain limit.

I don't have this issue, so my touchscreen might be less sensitive. And from the events I have seen generated by stylus, they seem to be even more sensitive than fingers.

Lets keep this issue open.

from avnc.

gujjwal00 avatar gujjwal00 commented on September 28, 2024 1

Touch slope is automatically determined by Android, based on things like screen density and device configuration.

I think the issue is that drag was started from the point where swipe was first detected, and not from the point where finger initially went down. But by that point, finger had already moved more than touch slop, so that small distance was effectively lost.

I am attaching a new APK: https://github.com/gujjwal00/avnc/suites/4876806747/artifacts/139390680
Commit: 823a633
This should fix the issue. You will have to uninstall the previous one.

I'm not the best at phrasing things and I hope this didn't come off as unnecessarily nitpicky or ungrateful.

No, you are absolutely fine πŸ‘ , and thank you for reporting this issue. I probably would not have encountered it myself.

from avnc.

gujjwal00 avatar gujjwal00 commented on September 28, 2024

Please see #6 . (precisely #6 (comment)).
Improving this experience is on my todo list, but for now I want to finish #5 before doing anything else touch related.

from avnc.

sudomain avatar sudomain commented on September 28, 2024

Per your comment in #6, I'm unable to get a regular long press to trigger no matter how still I try to keep my finger (if drag is enabled). I even tried with a stylus. To the best of my knowledge, I don't have particularly shaky hands lol.

I can get by with using a double tap for right click. Thanks again for the app.

from avnc.

gujjwal00 avatar gujjwal00 commented on September 28, 2024

@sudomain please test this APK: app-debug.zip

It should reliably differentiate between long press (touch-hold-release), and drag (touch-hold-swipe).

from avnc.

sudomain avatar sudomain commented on September 28, 2024

Thank you! It works great and I can do both gestures now. Is the "touch slope" something that the user could configure? With this apk I notice a slight XY inaccuracy between where I'm trying to start a drag and where AVNC actually starts a drag action. I think it's somewhere in the neighborhood of 10-20 pixels based on my desktop icon setting of 48x48px. If it's not possible, I can live with "leading" my drag actions.

EDIT: I'm not the best at phrasing things and I hope this didn't come off as unnecessarily nitpicky or ungrateful. Thank you again

from avnc.

sudomain avatar sudomain commented on September 28, 2024

Everything is perfect now. Thank you for your responsiveness and all your work!

from avnc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.