Site logo

Archived topic

Smooth scroll speed

3 replies · Started by Olle on February 25, 2022

Viewing posts 1–4 of 4

Hi
I use this for trying to speed up the "general" smooth scroll effect.

add_filter( 'generate_smooth_scroll_duration', 'tu_smooth_scroll_duration' );
function tu_smooth_scroll_duration() {
return 800; // milliseconds
}

But whatever I do it seem to be the same speed. Check out.

https://olle.dyndns-ip.com/luftskeppet/

its set to
return 100; // milliseconds

Seems the same as
return 800; // milliseconds

What to do?

Hi there,

what happens if you temporarily disable the Smooth Scroll in Customizer > General ?

Just wondering whether Beaver Builder is adding smooth scroll to.

Hi
Yes you are right! BB is adding the smooth scroll automatically and it can't be turned off globally.
So I had to turn of the GP smooth scroll.

Thank you.
Olle

Yeah thats a pain - i am not sure why they haven added a filter to remove it.
Glad to hear you found the issue.

This archived topic is closed to new replies.