The `scrollTo` method isn't aware of reduced motion preferences, but smooth scrolling via `{ behavior: smooth }` is a kind of motion.
So before using that flag, you must first check `window.matchMedia("(prefers-reduced-motion)")` and use instant if it matches.