Remove getOffset function used by scrollIntoView #1687
Labels
good first issue
This bug or task is a good first issue for new contributors.
help wanted
Ready for a contributor to tackle.
I noticed recently that
src/internal/scroll.ts
uses agetOffset()
function fromsrc/internal/offset.ts
, seen below:The comment in the jsdoc block suggests that the function was added to get around a specific Chrome bug regarding offsets on slotted elements.
The Chrome bug that is being referenced was fixed earlier this year, so I asked @claviska if this could be removed, and he believes it can.
I tried removing the function myself but I couldn't figure out the proper offset calculations in
scrollIntoView
once I had it removed.The text was updated successfully, but these errors were encountered: