You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I was digging the example files and noticed the usage of a event handler as a chained method in the TreeNode. Since it's deprecated I switched to the new EvenHandler and it seems that the left button click isn't registered when closing the Node. I don't even know if it's the right place for this Issue because when tracking it down I found out that the one that's returning false is
and it tracks down to C.wrap_igIsMouseClicked_Bool(C.ImGuiMouseButton(button)). Which ends up calling ImGui's IsMouseClicked. The issue didn't happen with the old Handler that used IsItemClickedV.
thank you for reporting!
Well, when I look at the code, it is quite obvious for me that putting EventHandler after TreeNode will not work (so idk Why did I suggest that in that comment).
I think TreeNodeWidget should have EventHandler() method that sets EventHandler that will be called after node createion but before layout.
funfact: examples/widgets still uses Event method 😄
What happend?
Hello! I was digging the example files and noticed the usage of a event handler as a chained method in the
TreeNode
. Since it's deprecated I switched to the newEvenHandler
and it seems that the left button click isn't registered when closing the Node. I don't even know if it's the right place for this Issue because when tracking it down I found out that the one that's returning false isand it tracks down to
C.wrap_igIsMouseClicked_Bool(C.ImGuiMouseButton(button))
. Which ends up calling ImGui'sIsMouseClicked
. The issue didn't happen with the old Handler that usedIsItemClickedV
.Code example
main.go
To Reproduce
Version
master
OS
Windows11 23H2
The text was updated successfully, but these errors were encountered: