Code Monkey home page Code Monkey logo

Comments (3)

scheffle avatar scheffle commented on May 18, 2024

Will your patch work also for the case that you start with a ctrl-click and then move the mouse and release the ctrl modifier in between and you still get a right mouse move? I don't think so.
I think NSViewFrame needs to remember the initial mouse down state and use that for move messages, or?

from vstgui.

sophiapoirier avatar sophiapoirier commented on May 18, 2024

That's a good point and I think you're right that it won't cover that. Admittedly in my own code, I reserve right-click for contextual menus (as is typical Mac behavior, but not universal), and so mouse tracking beyond the click is left to the OS so it doesn't matter. But you're right that it wouldn't work as expected if someone wanted to continue tracking a right-click in VSTGUI. So yeah, NSViewFrame would need to essential hold state that persists a mapping of that left-click+control to right-click for the lifetime of the click-hold, and allow the control key to function independently of that upon being released during that click-hold lifespan.

Would you like me to take a stab at a patch that does that?

from vstgui.

scheffle avatar scheffle commented on May 18, 2024

I think I will do this myself as I see an opportunity to refactor a little bit in this area. But thanks for the offer.

from vstgui.

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.