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

Going to the wrong tab if accidentally hovering #21

Open
MiniGod opened this issue Apr 22, 2018 · 1 comment
Open

Going to the wrong tab if accidentally hovering #21

MiniGod opened this issue Apr 22, 2018 · 1 comment

Comments

@MiniGod
Copy link

MiniGod commented Apr 22, 2018

I've used fts for a long time now, and I love it!

The thing that annoys me the most is when I open it, start typing and I see the tab I want as option 1, hit enter, but end up on the wrong tab.

This happens if my mouse happens to hover over the list while I'm typing. My workaround is to type a space before hitting enter (not sure why that makes the selection go to the first one).

OS: Linux and Windows (No mac available to reproduce)

@MiniGod
Copy link
Author

MiniGod commented Apr 22, 2018

The quickest fix I can think of after skimming the code is to change the onMouseEnter to a onMouseMove in tab_item.jsx. It's dirty, I know, but the alternative (that I can come up with) is to keep some state of whether the user has moved their mouse and ignore the mousemove until they do (and then reset that state when starting to type again).

However, the workaround mentioned in the OP might be a hint to there being another way; input change, but list not change, then selection changes to first.

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

1 participant