Skip to content

Commit 228969f

Browse files
authored
refactor: fixed scrolling to annotations (#1417)
* refactor: fixed scrolling behaviour and replaced plugin by native functionality we've been using a JS plugin previously most likely to enable or polyfill the smooth scrolling behaviour. * refactor: removed the plugin / dependency * chore: test for that method first of all * chore: code reformatting * Revert "chore: code reformatting" This reverts commit 0f7f4f3. * Revert "chore: test for that method first of all" This reverts commit 795546f. * Revert "refactor: removed the plugin / dependency" This reverts commit a3522d1. * Revert "refactor: fixed scrolling behaviour and replaced plugin by native functionality" This reverts commit cb2102c. * fix: removed the incorrect attribute
1 parent 05016cd commit 228969f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/uikit-workshop/src/scripts/components/modal-viewer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ export const modalViewer = {
230230
if (i + 1 === pos) {
231231
els[i].classList.add('pl-is-active');
232232

233-
scrollTo(patternInfoElem, document.body, {
233+
scrollTo(patternInfoElem, {
234234
top: els[i].offsetTop - 14,
235235
behavior: 'smooth',
236236
}).then(function () {

0 commit comments

Comments
 (0)