Debug scroll function (2)