linter-ui-default
linter-ui-default copied to clipboard
linting error tooltip obstructing the cursor
hi guys!
Do correct me if I posted this issue on a wrong package. Also, sorry if this is a duplicate of some other issue, but I can't see any other raised about this so far.
Currently, cursor can get under the tooltip:

Notice how we can travel three lines under the tooltip and it won't disappear.
That can be annoying because I can't see my code and I'd expect the tooltip to be able to detect that it stands in the way..
I'm talking about the tooltip which devtools report as this code, linter-tooltip div:

The issue is more apparent when there are multiple panes, tight space and linting error contains lots of text, like in prettier-raised linting error messages.
What would be expected behavior when the cursor collides with this tooltip? These 3 choices all seem equally valid to me, with pros and cons to each.
- Tooltip disappears on collision.
- Tooltip scrolls away to avoid collision.
- Tooltip ignores cursor (current behavior).
What if you have multiple cursors active? Should we watch all of them or just one? ... if just one, which?
If implementing scroll-away (# 2 above), what should we do at the bottom of the page if there is no more visible window space to move to?
In a situation where choosing between okay options that take a lot of work or an equally okay option that requires absolutely nothing, I would lean toward the reliable low maintenance option of just doing nothing.