Use smooth scrolling for the windows when not in viewport

Change-Id: I94591d17ba023d9a13e2436ddebfd0209e076845