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(lib.minimap): scroll by drag if scrollPastEnd #812

Merged
merged 1 commit into from
Oct 12, 2024

Conversation

vlad0337187
Copy link
Contributor

@vlad0337187 vlad0337187 commented Oct 4, 2024

Previously there was problem if scroll past end enabled.

No scroll past end - all is well.
Enabled - there's some offset between mouse on screen on minimap and actual screen.
Screencast: https://youtu.be/zfAk14_9CEQ

This should fix it.

I checked by console.log when scrolling, mouse position was bigger when scrolling to bottom then height of minimap.
So it didn't account space added if scroll past end enabled.
"Minimap.getHeight" should return total height of minimap (is this true ?) (I read it in method description), so this PR also accounts space after last line added if scroll past end enabled.

@vlad0337187
Copy link
Contributor Author

@UziTech , Hi.

I saw you previously merged some PRs to this repository.
Could you please review this and probably merge ?

Thanks.

@aminya aminya merged commit c0e2b55 into atom-minimap:master Oct 12, 2024
2 of 9 checks passed
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