-
Notifications
You must be signed in to change notification settings - Fork 0
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
[CLOSED] Drag ends if mouse moves outside window while resizing a panel #2043
Comments
This is happening because of the |
|
Yes... we added that I'll check your suggestion while I work on the review changes for #2092 and push it there if it's simple enough |
I think problem was that when moving mouse outside Brackets window, the mouse cursor changes to indicate that drag is no longer in effect while Brackets still has mouse capture, which is worse than it is now. So, we need to investigate a solution for both problems. |
Reviewed - assigning to Randy to continue to work with Chema. |
I've just done a quick check, and document.mouseup/mousemove does indeed allow us to resize even when the mouse is outside of Brackets. The problem is, as How would you prefer to handle this? |
The visual glitch seems preferable to the behavior bug to me, but I'll ask around the core team and see if others disagree... |
I think it's more than a "visual glitch". This is what happened to me: I was dragging to size panel with a "vertical drag" cursor and the mouse went outside of Brackets. The mouse cursor changed back a normal cursor so I released the mouse thinking that the drag was done. After moving mouse back over Brackets, the panel started going wacky -- that's when I realized that mouse still had the capture. I've seen bugs like this before, so I thought to click the mouse to get out of this state, but it could be a mess for someone that doesn't think of that. |
|
Back in the day we were actually using mouseup/mousemove on $mainView which had the same issue as $resizeCont... As I can put it together #2092 so you can check for yourselves. I guess we should be able to set the cursor system-wide in the shell to fix the visual glitch. Most of the apps I've checked on Mac seem to be doing so... |
I'm not seeing the cursor glitch on my Win XP matchine: CEF is maintaining the cursor we set even as you drag outside the window bounds. (Which I think you might get for free via OS mouse capture anyway...). Is the cursor glitch a Mac-only bug? |
WAIT! There's still a problem on Windows. If you release mouse outside of Brackets Window, then mouse cursor changes to normal, but when you move mouse back over Brackets, it still has the capture. This seems like a slight variation of the same problem. |
|
Yes, that what I meant. |
Ok yeah, I think we got our wires crossed then :-) See my comment yesterday -- the proposal isn't just to remove that one line, because that'll cause the bug you've been mentioning. But if we move the mouse listeners onto I'd like to see this fix get rolled into |
Glad to see we got this sorted out :) I did the tests in the win machine with the overall I'll finish putting everything together for the pull request in a moment so we can test the whole thing. |
Closing now that Chema's fix has been merged. Randy, did you want to file a follow-up bug about the mouse cursor being wrong if you drag past the window border too slowly? |
Thursday Nov 15, 2012 at 01:18 GMT
Originally opened as adobe/brackets#2117
Result:
Panel stops resizing. You have to mouseup, move the mouse back up, and start dragging again.
The text was updated successfully, but these errors were encountered: