-
Notifications
You must be signed in to change notification settings - Fork 16
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
Don't change line when window isn't focused on mouse click #388
Comments
Agreed |
What I tried to reproduce this issue:
From what I understand, on step 4 lines are changing (1 click does that). But for me I have to make one more click to change lines (first click to focus window and then the next click to change line). If I am doing this wrong @bhajneet please post the steps. If the expected behavior is take 2 clicks (one to focus window and then other to change line) then I think it might have gotten resolved magically 😄 Note: Tested on dev branch HEAD: c8bd3af and release V2.7.0 on MacOS 10.15.5 |
Mac and windows handle focus events differently. Namely, Mac does not allow clicks until the window is focused (so you must double-click to click a line), whilst in Windows, anything can be clicked, focus or not. Thus, it should be noted that on Windows, both Two solutions I played with:
I lean towards solution 1. Thoughts @bhajneet? TTR: 1hr |
1 is good to go
…On Tue, Jun 2, 2020, 22:24 Harjot Singh ***@***.***> wrote:
Mac and windows handle focus events differently. Namely, Mac does not
allow clicks until the window is focused (so you must double-click to click
a line), whilst in Windows, anything can be clicked, focus or not. Thus, it
should be noted that on Windows, both focus and click fire at the same
time, which is a little frustrating.
Two solutions I played with:
1.
Allow mouse-click slides only once a defocused window has been clicked
once. The downside is that clicking the current taskbar will not trigger
this, and therefore in circumstance that a user focuses the window by
clicking the taskbar, and then the screen, an extra click will be required.
2.
Adding a timeout to the onFocus event, so that when the click is fired
at the same time, it will be ignored. However, the downside of this is that
onClick actually fires only on mouseUp, which means that if the user
clicks on the screen slowly or holds the mouse longer than the timeout, the
line will change.
I lean towards solution 1. Thoughts @bhajneet
<https://github.com/bhajneet>?
TTR: 1hr
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#388 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADLZ3BZSG2RZMMI6DKPFYRDRUWX6TANCNFSM4KLXWLWA>
.
|
Someone may click from a different window onto the main window to focus it, but currently it will also change lines when doing this.
Personally this was how I even figured out we had this feature, however I can see how it would be annoying to some users. So unless the app is already in focus, I don't think we should activate this hotkey.
Thoughts?
The text was updated successfully, but these errors were encountered: