StrongDMM
StrongDMM copied to clipboard
Bug: Resizing one of the sidebars places the obj you have selected
Version
2.6.2
What happened?
i was trying to resize the search screen, and the thing i had selected was placed after i finished resizing
Reproduction
- Run StrongDMM
- Select an item to place
- Resize your search/prefab tabs while having your mouse still highlight the tile
- Thing is placed after you finish resizing
Relevant log output
No response
I tried fixing this but I'm not comfortable enough with imgui. The problems is that when you click the tool processor still considers your mouse to be clicking in the window rather than intending to start a drag on the small extended resize border.
Potential solutions:
- Checking if the cursor is on the "resize" image and cancelling (attempted, doesn't work since you can't get the cursor from imgui after the UI has rendered)
- Adding a 5px boundary on the x axis for clicking (kind of a hacky solution, but not attempted and likely possible)
- Concern with this is that different monitors, scaling, etc might have different size click borders.
- ????