Code Monkey home page Code Monkey logo

Comments (7)

olilarkin avatar olilarkin commented on May 27, 2024

I feel that it's not a problem. I do this...

#ifdef OS_IOS
    AttachGestureRecognizer(EGestureType::DoubleTap, [](IControl* pControl, const IGestureInfo& info){
      pControl->SetValueToDefault();
    });
#endif

from iplug2.

olilarkin avatar olilarkin commented on May 27, 2024

Double tap is a OS defined gesture on IOS so this way double tapping responds the same way as it does elsewhere in the OS. Not 100% sure but the user might also be able to adjust the timing of double taps in the system settings

from iplug2.

olilarkin avatar olilarkin commented on May 27, 2024

But adding gesture recognizers could be problematic for other interactions, so I didn't think it was a good idea to do it by default for all i controls

from iplug2.

AlexHarker avatar AlexHarker commented on May 27, 2024

Understood - that's useful clarification - I've gone about it a different way here using OnGesture() for the control and adding the recogniser to IGraphics, but I can't seem to get IOS to respond to the double taps - I see the Objective C style recogniser get attached, but its handler is never called.

from iplug2.

olilarkin avatar olilarkin commented on May 27, 2024

can i close this or do you think it is something we should change?

from iplug2.

AlexHarker avatar AlexHarker commented on May 27, 2024

I need to ask you some questions so I can check if something is broken here, or if it is just my misunderstanding as I can't get it to work...

from iplug2.

AlexHarker avatar AlexHarker commented on May 27, 2024

closing due to implementation confusion at my end (no bug but it my approach couldn't work due to reliance on GetWantsGestures - which was non-virtual - this is now fixed in #1058)

from iplug2.

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.