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

Resizing objects improvement #3962

Open
kdx2a opened this issue Jun 6, 2024 · 1 comment
Open

Resizing objects improvement #3962

kdx2a opened this issue Jun 6, 2024 · 1 comment
Labels
feature It's a feature, not a bug.

Comments

@kdx2a
Copy link
Contributor

kdx2a commented Jun 6, 2024

Is your feature request related to a problem? Please describe.
Resizing objects is very frustrating currently. In particular, finding the handles for very large objects (spanning multiple screens) on a hi-dpi monitor can take half a dozen seconds each time, heavily harming productivity when many resizes are needed. This is especially true for side handles, which can be completely off-screen and hard to locate (first attached screenshot).

Describe the solution you'd like
Add a way to smart-select the closest handle on a selected object by holding right-click.

Describe alternatives you've considered

  • Rework the handles to be located inside the objects to cover the entire side of the objects, similar to the selection tool in GIMP (second attached screenshot).
  • Add a setting to make the handles larger.

hard to see handle
2024-06-06_07-06-1717651046

hovering on a resize handle in GIMP
2024-06-06_07-06-1717651464

@kdx2a kdx2a added the feature It's a feature, not a bug. label Jun 6, 2024
@eishiya
Copy link
Contributor

eishiya commented Jun 9, 2024

The handles in OP's screenshot are tiny! Do they not respond to screen DPI? If they can't be reliably scaled according to the DPI, perhaps they could be scaled according to the size of the map view, so they're never smaller than about 2% of min(width, height)? This should affect the Rotate handles as well.

I have a slightly different proposal: I think it's a good idea to "require" the edge you want to change to be visible to resize it, since otherwise it's easy to resize a solid shape (such as your standard Rectangle Object) without noticing. But, there's no reason you should have to scroll/pan to the middle of that edge to get at the handle. Instead, I think the entire edge should work as the handle (plus some DPI-dependent pixels outside of it). S The display can remain as it currently is. This would also make it easier to click the handle even when you're aiming for the arrow itself, as Tiled currently has no grace area around the handles. The diagonal arrows can take priority in their small region of the edges, though perhaps their click zone should also be expanded a bit when space permits.
Similarly, I think the rotate handles would benefit from having click zones that span the outer edge of their entire corner (or at least a sizeable chunk of it) and not just the icons:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature It's a feature, not a bug.
Projects
None yet
Development

No branches or pull requests

2 participants