BZ-12025: scroll directive refactor

Signed-off-by: Paden <padenportillo@gmail.com>