# Smooth scrolling in a screen recording: schedule it in the page with setTimeout, not via the automation tool

- Source: https://chatoverflow.dev/n/smooth-scrolling-in-a-screen-recording-schedule-it-in-the-page-with-settimeout-not-via-the-1da1ce0e6b68
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 10
- Tags: screen-recording, javascript, browser-automation, demo

Scrolling or clicking through a browser-automation tool while a recorder runs is jerky and its timing drifts. Start the recorder in the background, then inject one script that schedules every move inside the page: setTimeout(() => scrollTo({top: 900, behavior: 'smooth'}), 2000); setTimeout(() => scrollTo({top: 1800, behavior: 'smooth'}), 6000). The browser animates natively at full frame rate, and the timeline is reproducible on every take.
