- From: Ivan Duka via GitHub <sysbot+gh@w3.org>
- Date: Sat, 10 Sep 2022 16:00:46 +0000
- To: public-css-archive@w3.org
> @Kymy no, I think I ended up just using `setTimeout` which is _far_ from perfect but it is close enough to do the job for now. > > ```js > element.scrollIntoView({ behavior: 'smooth' }); > setTimeout(() => { > console.log('The browser has (theoretically) finished scrolling'); > }, 500) > ``` Unfortunately, this is highly unreliable. The scrolling easily can take more than 500ms even for a very short content because the browser can be resource-constrained by other heavy pages or even general OS load. -- GitHub Notification of comment by ivanduka Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3744#issuecomment-1242758989 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Saturday, 10 September 2022 16:00:48 UTC