Home > database >  Scroll problem sometimes it doesn't work on Chrome
Scroll problem sometimes it doesn't work on Chrome

Time:11-01

I'm having a problem with the scroll on my site and I can't understand what's the cause. Only on Chrome sometimes the scroll doesn't work. I've tried to disable every code I wrote and still there's the problem. On safari the scroll works fine.

enter image description here

CodePudding user response:

I'm sorry, i've found the issue, this was the code:

html, body {
    scroll-behavior: smooth;
    overflow-x: hidden!important;
}

And now i've modified it like this:

html {
        scroll-behavior: smooth;
        overflow-x: hidden!important;
}
body {overflow-x: hidden;}

But still i can't understand why it was generating that issue

  • Related