-
-
Notifications
You must be signed in to change notification settings - Fork 529
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
Return tooltip to original position when possible #207
Conversation
I'm not sure we should add this option, in which situation you need such function? |
I'm making a playback slider for a sort of video player, which uses this tooltip to display the time at which the mouse hovers (compare to YouTube). Since you will want to see as much of the slider as possible when hovering, and also be able to move the mouse continuously along the track, it's good if the tooltip stays above the mouse as much as possible. But I'll find another solution if this doesn't fit with your design goals :) |
Okay I just checked Youtube slider, and I suppose that you are adding an option to keep the tooltip alway in a same position? no matter if it is out of the screen or not? |
Hm, thanks for the detailed explanation, I'm clear now. But I don't think it is a good idea to add an new option for reverting the tooltip to its origin, I suppose it would be better if the tooltip can revert to its origin automatically instead of keeping new position? I'm not sure how to implement this, but I will take investigation later. |
It isn't supposed to be an option, but rather exactly what you describe: that the tooltip reverts to its original orientation automatically. But I'm happy that you'll look into it, and I'm sure you'll think of a good solution :) |
Hey guys I'm really impressed by this fix, I think this fix is very important. Here is another approach to achieve desired behavior, please, take a look! Commit: 948e5c5 |
After a while, I can't said why my solution is better that @hassanbot's one. @wwayne, please clarify what do you want from a good solution? it seems that |
@hassanbot @huumanoid do you have a preference here? I've tested hassanbot's solution, and it works, and it appears a bit simpler than huumanoid's solution. I'm inclined to merge this PR. |
@aronhelser Please go ahead if it is good for you, thanks 👍 |
this doesn't actually work as the tooltip changes it's position from bottom to left |
No description provided.