Closed jsjtxietian closed 1 year ago
I have already created a pr including a quick solution for this. But in all events it's just a temporary solution since it may not be a good practice. A better solution might be to have some sort of layers that events are either passed through or blocked by them.
Thanks for the fix! If you're happy with the change, feel free to close this issue.
When I tried to drag imgui's window in the demo in chapter 1, the camera rotated with it, and it feels a little annoying. This is not a problem in other chapters, because other chapters use the game_camera class to manage camera movement and rotation, in which ImGui::IsAnyItemHovered() has been used to block events.