Add block scroll logic