Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

fix scrolling to highlighted lines on source view #3271

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

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).

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
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.

2 participants