StrongDMM icon indicating copy to clipboard operation
StrongDMM copied to clipboard

Bug: Resizing one of the sidebars places the obj you have selected

Open Fikou opened this issue 3 years ago • 1 comments

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

  1. Run StrongDMM
  2. Select an item to place
  3. Resize your search/prefab tabs while having your mouse still highlight the tile
  4. Thing is placed after you finish resizing

Relevant log output

No response

Fikou avatar Nov 11 '22 13:11 Fikou

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.
  • ????

itsmeow avatar May 23 '23 18:05 itsmeow