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

Column mode "sticks" #17

Closed
mark-hahn opened this issue Jul 31, 2014 · 6 comments
Closed

Column mode "sticks" #17

mark-hahn opened this issue Jul 31, 2014 · 6 comments

Comments

@mark-hahn
Copy link

I'm having an intermittent but frequent problem. When I finish using column mode the selection sticks in column mode and I can't do normal selection. It acts as if the alt-key is stuck down. The only thing that fixes it is to select again with the alt key down although this takes several tries at times.

I saw the thread here about the mouse leaving the window but this problem happens when the cursor doesn't leave the middle of the window.

I'm on windows 8.0 and atom 119. This has happened since I started with atom a few weeks ago at version 116.

@mark-hahn
Copy link
Author

Column mode selection came on just now when I reloaded atom and I had not hit alt.

@alexchee
Copy link
Contributor

alexchee commented Aug 9, 2014

Yeah I notice this too. An easy way to duplicate this behavior is hold alt down then click outside of atom. When you focus back into atom, it still thinks the alt key is down.

I haven't dug into atom that deep yet, but maybe there's a way to bind to unfocus on the editor window to reset the mouseStart, mouseEnd, and altDown variables.

@mark-hahn
Copy link
Author

I think the outside of window clicking issue has nothing to do with my problem. I have seen this problem many times when my cursor is nowhere near the edge. Also the column selection will click on at random times when I'm nowhere near the alt key. At its worst it happens every 30 secs.

Also I would like to point out that when the problem happens I can't easily get out of column mode. Clicking without alt doesn't clear it. I have to make another column selection and then click outside that to get normal selection working again.

I'll do my best to try and find something reproducible. It's hard though because the problem is so severe that I keep the extension disabled and take the trouble to enable it only when column selection is really needed.

When I'm done with my current project I'll help try to find the problem. I really want this to work.

@bigfive
Copy link
Owner

bigfive commented Sep 29, 2014

I believe the latest release fixes this issue.

@mark-hahn
Copy link
Author

but maybe there's a way to bind to unfocus on the editor window to reset the mouseStart, mouseEnd, and altDown variables

atom.workspace.on 'mouseup', (e) =>  # clear variables

This patch has been working for me.

Btw: Latest release didn't fix it.

@bigfive
Copy link
Owner

bigfive commented Jan 15, 2016

Is this now fixed for you? I can no longer reproduce the issue?

@bigfive bigfive closed this as completed Jan 15, 2016
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

3 participants