Use the same scrollToDepth logic for center-float