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: #28) Update scrollToVisible Loop #29

Merged
merged 1 commit into from
May 16, 2024

Conversation

thecoolwinter
Copy link
Contributor

Description

Fixes a bug when scrolling the cursor to visible.

The previous loop was slightly incorrect. It did not include a check to see if the destination rect was changed at all. There was then a small chance the rect was not ever updated and the editor jumped to the rect (0,0,0,0). I've also updated it to be a little more robust against layout changes.

Related Issues

Checklist

  • I read and understood the contributing guide as well as the code of conduct
  • The issues this PR addresses are related to each other
  • My changes generate no new warnings
  • My code builds and runs on my machine
  • My changes are all related to the related issue above
  • I documented my code

@thecoolwinter thecoolwinter merged commit a436751 into CodeEditApp:main May 16, 2024
2 checks passed
@thecoolwinter thecoolwinter deleted the fix/selection-jumping branch May 16, 2024 02:25
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.

🐞 Editor randomly jumps up on it's own
2 participants