eliminates stuttery infobox and is a little snappier
added logic to contain infobox inside viewport