Coder Social home page Coder Social logo

Comments (4)

rokups avatar rokups commented on July 20, 2024 1

It looks like this is caused by some kind of a race condition when mouse cursor is crossing a boundary between two viewport windows. moving_toward_child_menu gets sometimes (but not always!) set to false. As a temporary solution, moving tb and tc points (here) into submenu a little fixes this behavior.

from imgui.

ocornut avatar ocornut commented on July 20, 2024

Hello, thanks for posting.

so when i trying move cursor to select item, sometimes, it closes instantly because losing the hovering of menu.

This is an XY Problem question. We should absolutely focus on this. If you have viewports enabled, menus can appear on the right. Should focus on why it closes instantly. Can you make a video of it ?

Can you recreate the issue when using unmodified example_win32_dx9 example ?

from imgui.

OneForgottenMan avatar OneForgottenMan commented on July 20, 2024

GIF of this issue in my app:
Menu bar problem

GIF of this issue in example_win32_dx9:
Menu bar problem in example

from imgui.

ocornut avatar ocornut commented on July 20, 2024

We pushed b3ea01d and 03fc9a0, the combination of those should fix this bug.

We basically always (and still have) a couple of subtle issue with using BeginMenu() from a regular window that isn't a menu or a popup. Some are tricky to fix some not. Working on this I fixed another, it wasn't possible to open such menu with the Right Arrow (9445776). And it is still not possible to close them via Left Arrow.

Thanks for reporting.
Please let us know if for some reason things aren't fixed for you.

from imgui.

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.