-
Hi, I have a question about how smooth-scroll works. At this point, it is difficult to use the website without a mouse and a touchpad in a situation where we want to move the page down by pressing the key down - nothing happens. You have to click on the site with the mouse and only then you can use the key up, down or space. Question: What to do to make the key up, key down, space buttons work immediately after loading the page? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Keyboard events require the scrollbar container to be focused, so after loading the page, call container.focus() |
Beta Was this translation helpful? Give feedback.
-
Hi everyone, I tried to implement this tip in my react app, but it didn't work out(((
|
Beta Was this translation helpful? Give feedback.
Keyboard events require the scrollbar container to be focused, so after loading the page, call