Change from using windowResized callback to viewportResized.