Skip to content

Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️

224 B
Raw Blame
const REDUCED_MOTION_QUERY = '(prefers-reduced-motion: reduce)';

export const scrollBehavior = (): ScrollBehavior =>
    typeof window !== 'undefined' && window.matchMedia(REDUCED_MOTION_QUERY).matches ? 'auto' : 'smooth';