tooltips: hug edge of screen instead of jumping
This is more noticeable for larger tooltips, but changing this feels more natural in general.
This commit is contained in:
@@ -90,7 +90,7 @@ public class TooltipOverlay extends Overlay
|
|||||||
|
|
||||||
if (boundsX > clientX)
|
if (boundsX > clientX)
|
||||||
{
|
{
|
||||||
graphics.translate(-bounds.width, 0);
|
graphics.translate(-bounds.width + clientCanvasBounds.width - bounds.x, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user