Skip to content

Conversation

@haarg
Copy link
Member

@haarg haarg commented Jan 28, 2025

getClientRects returns an array, and its values are relative to the viewport. scrollIntoView is much easier to use for this.

@codecov
Copy link

codecov bot commented Jan 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.31%. Comparing base (a01bd12) to head (de4328b).
Report is 36 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3271   +/-   ##
=======================================
  Coverage   73.31%   73.31%           
=======================================
  Files          68       68           
  Lines        2387     2387           
  Branches      335      335           
=======================================
  Hits         1750     1750           
  Misses        509      509           
  Partials      128      128           

getClientRects returns an array, and its values are relative to the
viewport. scrollIntoView is much easier to use for this.
@haarg haarg force-pushed the haarg/fix-source-scroll branch from 0ce5198 to de4328b Compare January 28, 2025 04:37
@haarg haarg merged commit 14f350c into master Mar 5, 2025
10 checks passed
@haarg haarg deleted the haarg/fix-source-scroll branch March 5, 2025 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants