Added center snapping for scroll ribbon and refined code.