Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

refactor: fixed scrolling to annotations #1417

Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ export const modalViewer = {
if (i + 1 === pos) {
els[i].classList.add('pl-is-active');

scrollTo(patternInfoElem, document.body, {
scrollTo(patternInfoElem, {
top: els[i].offsetTop - 14,
behavior: 'smooth',
}).then(function () {
Expand Down