Prevented offscreen rendering to increase performance in firefox.