GithubHelp home page GithubHelp logo

Comments (24)

ThoNohT avatar ThoNohT commented on May 30, 2024

That is intentional. Say you managed to select a key that is partly hidden, and easily misclicked. This way you can still easily access the right click menu for this key. Because you can just right-click anywhere. It may seem counterintuitive, but this way I keep it consistent with selecting another key with left-clicking.

from nohboard.

joao-mambelli avatar joao-mambelli commented on May 30, 2024

With that in mind, you should make "Element Properties" and "Element Style" also behave this way, because currently they are working like I thought this should work, they, for example, go unavailable when right cliking an empty space.

from nohboard.

joao-mambelli avatar joao-mambelli commented on May 30, 2024

Oh, and watching my video again I realized that I didn't even select the button, I was just right clicking it. I do understand your point to open the menu pointing to a selected element, but I wasn't even selecting it.

from nohboard.

ThoNohT avatar ThoNohT commented on May 30, 2024

Hmmm, clicking another key opens the properties for the selected item. Even when you hover over another item. The only thing is that when it is not hovering over a key that it does not show those properties. I guess I can get those menu items to show when something is selected, indeed.

from nohboard.

ThoNohT avatar ThoNohT commented on May 30, 2024

fda487f This should fix it.

from nohboard.

joao-mambelli avatar joao-mambelli commented on May 30, 2024

so, don't you think the right clicking without selecting a key should update the menu? just try yourself, go to edit mode and right click things.

from nohboard.

ThoNohT avatar ThoNohT commented on May 30, 2024

Ah, opening the properties window selects a button, opening the style window doesn't. I guess that's what you mean? When I have nothing selected the menu seems to do exactly what it should do.

c85ed96 This disables selecting an element when opening the properties. I think that is the most logical way to handle it.

from nohboard.

joao-mambelli avatar joao-mambelli commented on May 30, 2024

Oh, that was a bug that I didn't even see hahaha but that is not what I mean, just watch this video, i think i expressed myself better: https://youtu.be/VHWlQhtmiig

from nohboard.

joao-mambelli avatar joao-mambelli commented on May 30, 2024

If you wanna keep the way it already is, there's a bug report at the end of the video.

from nohboard.

ThoNohT avatar ThoNohT commented on May 30, 2024

Ah, the highlight is wrong when you right click right into the menu a second time. This doesn't mean the menu is wrong though. It actually works for the point where you're clicking. What I need to do is update the highlight.

from nohboard.

joao-mambelli avatar joao-mambelli commented on May 30, 2024

are you sure? does it work for where you are right clicking a second time? What I showed in the video was exactly that, it doesn't work

from nohboard.

joao-mambelli avatar joao-mambelli commented on May 30, 2024

I think for that to work, the hovering highlighting should still work if the menu is opened, because currently if you open the menu, the hovering highlighting feature stops updating

from nohboard.

ThoNohT avatar ThoNohT commented on May 30, 2024

I now only update the highlight whenever I open the menu. Previously I did check the key at that location but did not update the highlight. Have you checkked the new build from d8fb035? It should be fixed there.

from nohboard.

joao-mambelli avatar joao-mambelli commented on May 30, 2024

Hmmm, i see. But can't the highlight be updated whenever I hover over the elements with the menu opened? Like it's with the menu closed... This way we can see waht we will select... For boundaries this would help...

from nohboard.

ThoNohT avatar ThoNohT commented on May 30, 2024

This is indeed very hard to achieve, as I get no more events about the location of the mouse once there is a context menu open. Otherwise, this would have happened automatically. And besides that, I feel that it is best to have the key the menu is currently intended for remain highlighted.

from nohboard.

joao-mambelli avatar joao-mambelli commented on May 30, 2024

Oh yeah, right... limitations...

Anyway, i will test the current version

from nohboard.

joao-mambelli avatar joao-mambelli commented on May 30, 2024

so, a few bugs related to it, the most important is that now if there's a selected element and you right click on another element, the program will point to where you right cliked instead of pointing to the selected one.

The right clicking is highlighting even if not in edit-mode.

There's more bugs, it's easier if you see it: https://youtu.be/QMzu7qBNo3c

from nohboard.

ThoNohT avatar ThoNohT commented on May 30, 2024

Right, I think I know what causes all of those bugs. Thanks for this super fast testing by the way.

There's three things I need to improve during menu opening:

  • Don't set the highlighted definition if there is a selected definition.
  • Don't set the highlighted definition when not in editmode.
  • Use a proper StartManipulating() call, in stead of setting the definition as highlighted as it is right now.

from nohboard.

joao-mambelli avatar joao-mambelli commented on May 30, 2024

Will the third one fix the program thinking I'm selecting the boundary when it should select the entire element? And also fix the program using my previous position instead of the current one?

I think these 2 bugs are related, right?

from nohboard.

ThoNohT avatar ThoNohT commented on May 30, 2024

Yes, they are basically the same bug, which should be fixed by that third point.

from nohboard.

ThoNohT avatar ThoNohT commented on May 30, 2024

Ha @joao7yt, I assigned it to you. Could you test it for me?

https://ci.appveyor.com/project/ThoNohT/nohboard/build/1.0.44

from nohboard.

joao-mambelli avatar joao-mambelli commented on May 30, 2024

ok, first bug, i cant right click in an empty space without it throwing me an error

from nohboard.

ThoNohT avatar ThoNohT commented on May 30, 2024

I fixed that. I'll wait a moment before pushing a new version, if any new bug comes up.

from nohboard.

ThoNohT avatar ThoNohT commented on May 30, 2024

Fixed (among others) in https://ci.appveyor.com/project/ThoNohT/nohboard/build/1.0.47

from nohboard.

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.