[Resolved] Smooth Scroll not working with GenerateBlocks

Home Forums Support [Resolved] Smooth Scroll not working with GenerateBlocks

Home Forums Support Smooth Scroll not working with GenerateBlocks

  • This topic has 16 replies, 4 voices, and was last updated 2 years ago by Tom.
Viewing 2 posts - 16 through 17 (of 17 total)
  • Author
    Posts
  • #1269166
    George

    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))

    #1269676
    Tom
    Lead Developer
    Lead Developer

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

Viewing 2 posts - 16 through 17 (of 17 total)
  • You must be logged in to reply to this topic.