viewport.getLeftGutterWidth()
This will return the width of the left "black bar". A black bar appears, when the viewport is smaller than the actual window. In your case, this can never happen, because it's a FillViewport
.
Depending on your aspect ratio, viewport.getLeftGutterWidth()
will return either 0
, in case the viewport got over-extended on the y-axis, or it has a negative value in case it over-extended on the x-axis.
So what you are looking for is Math.abs(viewport.getLeftGutterWidth())
for the x-value of the left-most visible coordinate.