fix sample code (missing scroll speed)