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

FR: Resize on one axis if mouse near edge and far from corner #13

Open
qpwo opened this issue May 24, 2021 · 3 comments
Open

FR: Resize on one axis if mouse near edge and far from corner #13

qpwo opened this issue May 24, 2021 · 3 comments

Comments

@qpwo
Copy link

qpwo commented May 24, 2021

So if the mouse was near the left border of the window and far from the top & bottom, then the resizing would only move the left edge. How hard would this be to do? Something like this diagram:
divided-rectangle

@vladdeSV
Copy link
Contributor

vladdeSV commented May 28, 2021

If I understand your reasoning, you actually mean that if the cursor is not touching the red area, the window should resize vertically horizontally and keeping the opposite corners stationary?

  • "near [...] border"
  • "far from the top & bottom [border]"

119412558-16f49a00-bcba-11eb-88d8-bdd3618ae98e

@qpwo
Copy link
Author

qpwo commented May 28, 2021

Did you mean "resize horizontally"? I mean that the edge you're near is what should move. So in your diagram, if the mouse is in the left white area, then the left edge of the window can go left and right, but the other three edges of the window are fixed, so it's only horizontal scaling. I was thinking that the left triangle in my diagram would correspond to the left edge, but your rectangle might make more sense.

@vladdeSV
Copy link
Contributor

Excuse me, I meant "horizontally".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants