Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Fikou opened this issue Nov 11, 2022 · 1 comment
Open

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

Fikou opened this issue Nov 11, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@Fikou
Copy link

Fikou commented Nov 11, 2022

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 Fikou added the bug Something isn't working label Nov 11, 2022
@itsmeow
Copy link
Contributor

itsmeow commented May 23, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants