Coder Social home page Coder Social logo

MultiSelect + DragDrop + TreeNode: Hovering over an open TreeNode with DragDrop active causes MultiSelect selection to be cleared and replaced by only the hovered TreeNode about imgui HOT 3 CLOSED

bratpilz avatar bratpilz commented on August 14, 2024 1
MultiSelect + DragDrop + TreeNode: Hovering over an open TreeNode with DragDrop active causes MultiSelect selection to be cleared and replaced by only the hovered TreeNode

from imgui.

Comments (3)

ocornut avatar ocornut commented on August 14, 2024 1

Thank for the detailed bug report, very much appreciated.
I have now pushed a fix for this: 2981a10, turns out it was pretty simple.

Note that the multi-select demos include an idea to traverse a tree linearly.

from imgui.

ocornut avatar ocornut commented on August 14, 2024 1

While looking at your test case I was initially frustrated that double-clicking wouldn't open tree nodes.

Normal tree node open on simple click (could potentially be reevaluated) but when using multi-select we are forced to enable ImGuiTreeNodeFlags_OpenOnArrow. However I think we could come up with the change that if none of the _OpenOnXXX behavior is explicit, then the default for multi-selectable tree node would be ImGuiTreeNodeFlags_OpenOnArrow | ImGuiTreeNodeFlags_OpenOnDoubleClick, aka a more sensible default. Going to make that change now.

from imgui.

bratpilz avatar bratpilz commented on August 14, 2024

Thanks for another very fast fix! This new default open behavior sounds good too. During my testing I had also noticed that I had to press on the arrow to open the nodes now, which wasn't super convenient, so this makes it easier.

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.