-
-
Notifications
You must be signed in to change notification settings - Fork 355
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
Accidental mouse hover sometimes causes wrong window to be focused #286
Comments
Update: I just realized disabling the "Select on hover" option does exactly this! I thought it exclude the mouse altogether. Feel free to close this. |
Adding to that, @mfn made the very interesting observation that HyperSwitch has some kind of subtle anti-accidental interaction UX going on. I'll keep this ticket open to remember to revisit this, and experiment. When I was working on #259 recently, I noticed that macOS also by default disables mouse hover on scrolling, until you start moving the mouse again. Some kind of anti-accidental interaction mechanism seems appealing, on top of the existing on/off switch. |
I implemented this ticket. It turned out to be way more complex than I thought (as usual with this project). Some implementation notes: I implemented 35px of threshold before activating mouse hover over the windows. The 35px are traveled within the whole view, that includes from the outer padding. This supports these 2 scenarios:
Once the 35px are reached, the mouse hover is activated until the UI is dismissed then brought back again. Some limitations:
I feel it's tempting to implement both and add a new preference like "ignore accidental mouse movement" but there are so many issue doing this: preferences complexity, how to explain clearly to the user how the mitigation works, etc. I would be very interested to hear from you guys. As of now, I think I will not release that work. I'm not convinced it is actually an improvement. |
After going through the comments, I understand now that why this feature hasn't implemented. The distance based method seems not to be a good idea, my initial idea is not a proper one. |
@RoadToDream That's an interesting idea. We would replace the checkbox here: By a dropdown menu with 3 options:
For the second option, we could have another visual clue for hovering that is distinct from selecting the window, like Windows does. Sounds good to me, although it's yet another preference instead of some smarter strategy that could be turned on for everyone. That being said, maybe such a strategy simply doesn't exist, so this would be an improvement in the meantime. |
I think a dropdown menu is a good idea. Just disable mouse hover works fine for me currently, and if border appears when mouse hover on it(when mouse hover to select window is disabled), it should feel better. |
So I've found this issue from #1617, I think for users that are very keyboard-centric and only use AltTab by cycling through windows via repeated tab key presses, it is definitely worth implementing the option to completely ignore all interactions with the mouse (movements & clicks). For this type of user, this would have the added benefit of still being able to drag & drop files between windows, without dropping the file onto the AltTab window preview itself. This would also helpfully fix the bug mentioned in #1617. Video demonstrating an example workflow: As you can see from the above video, I can avoid the aforementioned bug by making sure my cursor is out of the way where the window previews would appear, meaning my mouse does not have a chance to interact with them. Most of the time I forget to do this and instead have my mouse in the centre of my screen, where it will select a random window. |
@Jack-Bristow #1617 doesn't discuss a bug, but a feature request. AltTab is working correctly, not dysfunctioning. I'm a bit struggling to understand your proposal. This ticket here is about finding a way to avoid accidental mouse hover. What is your proposal for that? |
What I meant by my comment was that in AltTab's preferences, if you disable everything relating to mouse options, you would expect the interface to not have any reaction to the mouse - whether that be by mouse hover, clicking or dragging a file. I was suggesting that the previous comment of implementing some sort of option to ignore mouse, would disable this feature of dragging a file onto a window preview. Perhaps under the "Controls" tab in AltTab's preferences, there could be a sub section called Mouse Options or something similar, that controls how the mouse reacts when the window switcher is open. Some sort of master control that enables/disables all mouse control would make sense at the top of this sub section, with all other mouse options (mouse hover changes selection/clicking focuses window/drag & drop file onto window) being greyed out/un-selectable if mouse control is disabled. I hope this clears up my previous comment. |
I realize now that moving focus with mouse hover is probably not a good idea. Mouse hover should probably show which preview is hovered (see #2078) so that it's clear which window would be focused if the user clicks, or drop from a drag-and-drop. I'll close this ticket as it's now subsumed by #2078. |
This issue was opened by a bot after a user submitted feedback through the in-app form.
From: [email protected]
Message:
Debug profile
The text was updated successfully, but these errors were encountered: