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

changing cursor shape on edge hover needs to be more forgiving #1

Open
rising-dancho opened this issue Aug 31, 2022 · 1 comment
Open

Comments

@rising-dancho
Copy link

extremely cool and sophisticated program. only requires one thing to be perfect, it just needs improvement on the edge detection for the cursor. since it requires too much precision from the user in order to drag the edge when attempting to resize. i'm interested to know on how that maybe done. it would be a great help. looking into ways on how to do that as well. hope it helps

@yjg30737
Copy link
Owner

yjg30737 commented Sep 3, 2022

Actually that's one of the hardest part of this module.

I hope edge detection works well outside of the window but I've never found the platform-independent way to do it.

But that doesn't mean there is absolutely no way to deal with this problem.

As far as i concern, there are 5 options. Yes, it is not a solution but it can be helpful a little bit.

  1. Increase the margin with setMargin function. (But it makes window frame thicker)
  2. Make invisible frame. (I still can't make this.)
  3. Using shadow frame to detect the cursor.
  4. Make event handler and catch the leaveEvent when cursor gets out of the box no matter how it looks like such as "↔". But currently event handler catches the leaveEvent as if cursor is normal shape.
  5. Using specified way for each OS.

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