Adds ViewportChanged event to states.