Bricks Version: 1.3.4
Browser: Safari 14.1.1
OS: macOS
URL: https://ho.maarevenonline.nl
I am creating a one page website (see url) but the smooth scrolling does not work in Safari. Is there a workaround or fix for this?
Bricks Version: 1.3.4
Browser: Safari 14.1.1
OS: macOS
URL: https://ho.maarevenonline.nl
I am creating a one page website (see url) but the smooth scrolling does not work in Safari. Is there a workaround or fix for this?
Hello @barthusz,
Bricks handles the smooth scrolling using the Element.scrollIntoView()
method. Unfortunately, the smooth option is not supported by Safari (Element.scrollIntoView() - Web APIs | MDN).
A workaround to this could be to use a polyfill, like the one described here.
Thank you so much @luistinygod ! I created a fix and now it’s working in Safari too
Really appreciate your help.
Maybe you also know the solution for my other question? Background video does not autoplay in Chrome
Hi @barthusz
Could you tell how you achieve Element.scrollIntoView()
method in safari.
We should follow only via script method ?
Please tell that things.
I tried this method and the scrolling is clunky. Is there another method? We need cross browser compability. Not solved.
Hi, have you tried the poly fill workaround mentioned by Luis?