GithubHelp home page GithubHelp logo

Comments (5)

domportera avatar domportera commented on June 2, 2024 1

No worries! you are not beholden to my needs, you got a whole ass life to live

Yeah gestures are tricky and they all tend to affect each other - I've developed a multitouch library for Godot that has had to deal with similar issues when I was trying to make my own VNC application 😅 It's super challenging to start, let alone adding support for additional gestures after the fact. Maybe my repo-in-progress could provide some insights, though I doubt it is in any way comparable to what you have going on here. Where do you keep your code for gesture detection?

from avnc.

gujjwal00 avatar gujjwal00 commented on June 2, 2024 1

All incoming touch events are processed in TouchHandler, and gesture detection is here.

from avnc.

gujjwal00 avatar gujjwal00 commented on June 2, 2024

Hi @domportera , thanks for taking the time to record the issue.

The root cause for this behavior is that AVNC is trying to differentiate between two-finger-tap and two-finger-pinch gestures. If the fingers move more than a certain threshold after touching the screen, it will be treated as the start of pinch/scroll gesture, and two-finger-tap detection will be cancelled.

I know this is not perfect, but two-finger-tap was a relatively newer addition, I tried to not affect other gestures. I am still looking to improve this situation.

PS: sorry for late response.

from avnc.

gujjwal00 avatar gujjwal00 commented on June 2, 2024

Your library is doing all event processing and gesture detection itself, but AVNC builds on top of GestureDetector.

from avnc.

domportera avatar domportera commented on June 2, 2024

I see, so yeah the logic most certainly wouldn't be transferable in any significant way. I'm hella busy lately but I'll see if I can take a look one day

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.