Site logo

Archived topic

Smooth Scroll not working with GenerateBlocks

16 replies · Started by George on April 28, 2020

Viewing posts 16–17 of 17

Hi Tom, sorry for opening this up again. Is there a way to disable the Reduce Motion setting requirement from the smooth-scroll.js code without editing the core file? I just want to make sure that the Reduce Motion setting is actually NOT respected.

I think, it's in the minified smooth-scroll.min.js file. This bit here:

if(!("matchMedia"in A&&A.matchMedia("(prefers-reduced-motion)").matches)

which I want to convert to this:
if(!("matchMedia"in A&&A.matchMedia("!(prefers-reduced-motion)").matches)

(add the exclamation mark before (prefers-reduced-motion))

You would likely need to edit the core file, unfortunately.

This archived topic is closed to new replies.