Fix tooltip position abruptly changing when content reaches edge of the screen#6622
Fix tooltip position abruptly changing when content reaches edge of the screen#6622Joehuu wants to merge 2 commits intoppy:masterfrom
Conversation
|
I don't know that I agree with this. This makes it possible for the cursor to occlude the tooltip when the tooltip is clamped to the window. Especially visible on elements with tooltips on the bottom right corner of the window. Before: Screen.Recording.2025-08-11.at.10.08.58.movAfter: Screen.Recording.2025-08-11.at.10.09.25.movWill leave to @peppy to assess. |
|
Maybe the path of least resistance is a |
|
If exposing as a property works for the usages we're trying to fix then I see this as the best solution. For me, the case we want to consider is touch input. We don't want tooltips to overlap a user's finger to the point they can't read it. But in the linked cases, the tooltips are huge and this is less of a problem. I'd argue that if-tooltip-is-larger-than-finger, overlapping is fine. |
|
Here's the osu!-side branch (when I'm not here after this is merged): ppy/osu@master...Joehuu:osu:tooltip-allow-cursor-overlap The current |

Just matches the x position logic. As indicated by the second issue, the previous logic didn't work to keep the tooltip content on screen when it gets moved to the top right of the cursor.
And as said in ppy/osu#34515, this will match stable FWIW.