Simplify scrollbox scroll code